Skip to content

Commit eb2dd02

Browse files
committed
Add plot saving
1 parent c241fea commit eb2dd02

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

04.2_data_wrangling.ipynb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,24 @@
171171
"pd.plotting.scatter_matrix(df)"
172172
]
173173
},
174+
{
175+
"cell_type": "markdown",
176+
"metadata": {},
177+
"source": [
178+
"### 2.2 Saving plots\n",
179+
"\n",
180+
"We may want to save the output of a plot. This can be done using the `plt.savefig()` function. By default, the format will be determined from the filename extension you provide."
181+
]
182+
},
183+
{
184+
"cell_type": "code",
185+
"execution_count": null,
186+
"metadata": {},
187+
"outputs": [],
188+
"source": [
189+
"plt.savefil('plot.pdf')"
190+
]
191+
},
174192
{
175193
"cell_type": "markdown",
176194
"metadata": {},

0 commit comments

Comments
 (0)