Skip to content

Commit d3a3f16

Browse files
authored
Merge pull request #319 from maxim-belkin/few-fixes
Ep.08: few minor fixes
2 parents 7fbca2b + 088f080 commit d3a3f16

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

_episodes/08-putting-it-all-together.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ plt.show() # not necessary in Jupyter Notebooks
126126
> %matplotlib inline
127127
> ~~~
128128
> {: .language-python}
129+
{: .callout}
129130
130131
The returned object is a matplotlib object (check it yourself with `type(my_plot)`),
131132
to which we may make further adjustments and refinements using other matplotlib methods.
@@ -145,9 +146,9 @@ styles and the source codes that create them.
145146
146147
### `plt` pyplot versus object-based matplotlib
147148
148-
Matplotlib integrates nicely with the numpy package and can use numpy arrays
149+
Matplotlib integrates nicely with the Numpy package and can use Numpy arrays
149150
as input of the available plot functions. Consider the following example data,
150-
created with numpy:
151+
created with Numpy:
151152
152153
~~~
153154
import numpy
@@ -168,13 +169,13 @@ plt.plot(x, y, '-')
168169
> ## Tip: Cross-Platform Visualization of Figures
169170
> Jupyter Notebooks make many aspects of data analysis and visualization much simpler. This includes
170171
> doing some of the labor of visualizing plots for you. But, not every one of your collaborators
171-
> will be using a Jupyter Notebook. The .show() command allows you to visualize plots
172-
> when working at the command line, with a script, or at the iPython interpreter. In the
172+
> will be using a Jupyter Notebook. The `.show()` command allows you to visualize plots
173+
> when working at the command line, with a script, or at the IPython interpreter. In the
173174
> previous example, adding `plt.show()` after the creation of the plot will enable your
174175
> colleagues who aren't using a Jupyter notebook to reproduce your work on their platform.
175176
{: .callout}
176177
177-
or create a matplotlib `figure` and `axis` object first and add the plot later on:
178+
or create matplotlib `figure` and `axis` objects first and add the plot later on:
178179
179180
~~~
180181
fig, ax = plt.subplots() # initiate an empty figure and axis matplotlib object

0 commit comments

Comments
 (0)