Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 778f6c1

Browse files
committed
Added plot system
1 parent e858e52 commit 778f6c1

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

Tutorial.ipynb

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
16-
"import numpy as np\n",
16+
"import pandas as pd\n",
1717
"\n",
1818
"import os\n",
1919
"import shutil\n",
@@ -137,6 +137,35 @@
137137
"\n",
138138
"print(\"Completed job\")"
139139
]
140+
},
141+
{
142+
"cell_type": "code",
143+
"execution_count": null,
144+
"metadata": {},
145+
"outputs": [],
146+
"source": [
147+
"df = pd.read_csv(\"Data/results.csv\", index_col=0)\n",
148+
"\n",
149+
"df.head()"
150+
]
151+
},
152+
{
153+
"cell_type": "code",
154+
"execution_count": null,
155+
"metadata": {},
156+
"outputs": [],
157+
"source": [
158+
"plt.figure(figsize=(15, 5))\n",
159+
"plt.title(\"XVA\")\n",
160+
"plt.xlabel(\"Time\")\n",
161+
"plt.ylabel(\"Value\")\n",
162+
"\n",
163+
"for col in df.columns:\n",
164+
" plt.plot(df.index, df[col], label=col)\n",
165+
"\n",
166+
"plt.legend()\n",
167+
"plt.show()"
168+
]
140169
}
141170
],
142171
"metadata": {

0 commit comments

Comments
 (0)