Skip to content

Commit cdf3df0

Browse files
authored
03-matplotlib.md: Fix long lines (issue #498) (#920)
1 parent 050856b commit cdf3df0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_episodes/03-matplotlib.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,16 @@ formats, including SVG, PDF, and JPEG.
130130

131131
> ## Importing libraries with shortcuts
132132
>
133-
> In this lesson we use the `import matplotlib.pyplot` [syntax]({{ page.root }}/reference.html#syntax)
133+
> In this lesson we use the `import matplotlib.pyplot`
134+
> [syntax]({{ page.root }}/reference.html#syntax)
134135
> to import the `pyplot` module of `matplotlib`. However, shortcuts such as
135136
> `import matplotlib.pyplot as plt` are frequently used.
136137
> Importing `pyplot` this way means that after the initial import, rather than writing
137138
> `matplotlib.pyplot.plot(...)`, you can now write `plt.plot(...)`.
138139
> Another common convention is to use the shortcut `import numpy as np` when importing the
139140
> NumPy library. We then can write `np.loadtxt(...)` instead of `numpy.loadtxt(...)`,
140141
> for example.
141-
>
142+
>
142143
> Some people prefer these shortcuts as it is quicker to type and results in shorter
143144
> lines of code - especially for libraries with long names! You will frequently see
144145
> Python code online using a `pyplot` function with `plt`, or a NumPy function with

0 commit comments

Comments
 (0)