From 028d272be559ca9f6c8213d9a622a9f07914530c Mon Sep 17 00:00:00 2001 From: Tom Connolly Date: Wed, 16 Jan 2019 17:09:14 -0800 Subject: [PATCH 1/5] minor spacing edits --- _episodes/08-putting-it-all-together.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_episodes/08-putting-it-all-together.md b/_episodes/08-putting-it-all-together.md index 07b934d82..6ea3712c3 100644 --- a/_episodes/08-putting-it-all-together.md +++ b/_episodes/08-putting-it-all-together.md @@ -292,9 +292,9 @@ plt.show() # not necessary in Jupyter Notebooks > > fig, ax = plt.subplots() > > flood = discharge[(discharge["datetime"] >= "2013-09-11") & (discharge["datetime"] < "2013-09-15")] ->> +> > > > ax2 = fig.add_axes([0.65, 0.575, 0.25, 0.3]) ->> flood.plot(x ="datetime", y="flow_rate", ax=ax) +> > flood.plot(x ="datetime", y="flow_rate", ax=ax) > > discharge.plot(x ="datetime", y="flow_rate", ax=ax2) > > ax2.legend().set_visible(False) @@ -357,4 +357,3 @@ save as a text file with a `.py` extension and run in the command line). {: .challenge} {% include links.md %} - From df24e268e82655622a816c89614c045050826b46 Mon Sep 17 00:00:00 2001 From: Tom Connolly Date: Wed, 16 Jan 2019 17:14:34 -0800 Subject: [PATCH 2/5] additional spacing edits --- _episodes/08-putting-it-all-together.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_episodes/08-putting-it-all-together.md b/_episodes/08-putting-it-all-together.md index 6ea3712c3..ab46e1631 100644 --- a/_episodes/08-putting-it-all-together.md +++ b/_episodes/08-putting-it-all-together.md @@ -297,7 +297,6 @@ plt.show() # not necessary in Jupyter Notebooks > > flood.plot(x ="datetime", y="flow_rate", ax=ax) > > discharge.plot(x ="datetime", y="flow_rate", ax=ax2) > > ax2.legend().set_visible(False) - > > ax.set_xlabel("") # no label > > ax.set_ylabel("Discharge, cubic feet per second") > > ax.legend().set_visible(False) From 4578c8e338f68b07fdc24b1eed07fb2de6f1a2d3 Mon Sep 17 00:00:00 2001 From: Tom Connolly Date: Wed, 16 Jan 2019 17:21:53 -0800 Subject: [PATCH 3/5] added tip header for figure formats --- _episodes/08-putting-it-all-together.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_episodes/08-putting-it-all-together.md b/_episodes/08-putting-it-all-together.md index ab46e1631..fec3f7e15 100644 --- a/_episodes/08-putting-it-all-together.md +++ b/_episodes/08-putting-it-all-together.md @@ -317,8 +317,9 @@ fig.savefig("my_plot_name.png") ~~~ {: .language-python} -Which will save the `fig` created using Pandas/matplotlib as a png file with the name `my_plot_name` +which will save the `fig` created using Pandas/matplotlib as a png file with the name `my_plot_name` +> ## Tip: Saving figures in different formats > ~~~ > Matplotlib recognizes the extension used in the filename and > supports (on most computers) png, pdf, ps, eps and svg formats. From 3a3d19cf0719e270e69a974d589c078b44803589 Mon Sep 17 00:00:00 2001 From: Tom Connolly Date: Wed, 16 Jan 2019 17:26:28 -0800 Subject: [PATCH 4/5] added tip header for figure formats --- _episodes/08-putting-it-all-together.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_episodes/08-putting-it-all-together.md b/_episodes/08-putting-it-all-together.md index fec3f7e15..4be1c71c3 100644 --- a/_episodes/08-putting-it-all-together.md +++ b/_episodes/08-putting-it-all-together.md @@ -321,8 +321,8 @@ which will save the `fig` created using Pandas/matplotlib as a png file with the > ## Tip: Saving figures in different formats > ~~~ -> Matplotlib recognizes the extension used in the filename and -> supports (on most computers) png, pdf, ps, eps and svg formats. +> Matplotlib recognizes the extension used in the filename and +> supports (on most computers) png, pdf, ps, eps and svg formats. > ~~~ {: .callout} From 3b11c3319e584edef590996d6773081505527701 Mon Sep 17 00:00:00 2001 From: Tom Connolly Date: Wed, 16 Jan 2019 17:29:43 -0800 Subject: [PATCH 5/5] added tip header for figure formats --- _episodes/08-putting-it-all-together.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/_episodes/08-putting-it-all-together.md b/_episodes/08-putting-it-all-together.md index 4be1c71c3..a229ccc9d 100644 --- a/_episodes/08-putting-it-all-together.md +++ b/_episodes/08-putting-it-all-together.md @@ -320,10 +320,8 @@ fig.savefig("my_plot_name.png") which will save the `fig` created using Pandas/matplotlib as a png file with the name `my_plot_name` > ## Tip: Saving figures in different formats -> ~~~ > Matplotlib recognizes the extension used in the filename and > supports (on most computers) png, pdf, ps, eps and svg formats. -> ~~~ {: .callout} > ## Challenge - Saving figure to file