Skip to content

Commit 2489930

Browse files
committed
extend ellipsis to work with matplotlib 3
1 parent 7f850cc commit 2489930

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

advanced/scipy_sparse/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Why Sparse Matrices?
3232
>>> plt.plot(x, 8.0 * (x**2) / 1e6, lw=5) # doctest: +ELLIPSIS
3333
[<matplotlib.lines.Line2D object at ...>]
3434
>>> plt.xlabel('size n') # doctest: +ELLIPSIS
35-
Text(...,'size n')
35+
Text(...'size n')
3636
>>> plt.ylabel('memory [MB]') # doctest: +ELLIPSIS
37-
Text(...,'memory [MB]')
37+
Text(...'memory [MB]')
3838

3939
Sparse Matrices vs. Sparse Matrix Storage Schemes
4040
-------------------------------------------------

intro/matplotlib/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,12 +1127,12 @@ from within a python session:
11271127
>>> help(plt.plot) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
11281128
Help on function plot in module matplotlib.pyplot:
11291129
<BLANKLINE>
1130-
plot(*args, **kwargs)
1130+
plot(*args,...)
11311131
Plot y versus x as lines and/or markers.
11321132
<BLANKLINE>
11331133
Call signatures::
11341134
<BLANKLINE>
1135-
plot([x], y, [fmt], data=None, **kwargs)
1135+
plot([x], y, [fmt],...data=None, **kwargs)
11361136
plot([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
11371137
...
11381138

intro/numpy/operations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ Other reductions
433433
>>> plt.plot(t, np.sqrt(mean_sq_distance), 'g.', t, np.sqrt(t), 'y-') # doctest: +ELLIPSIS
434434
[<matplotlib.lines.Line2D object at ...>, <matplotlib.lines.Line2D object at ...>]
435435
>>> plt.xlabel(r"$t$") # doctest: +ELLIPSIS
436-
Text(...,'$t$')
436+
Text(...'$t$')
437437
>>> plt.ylabel(r"$\sqrt{\langle (\delta x)^2 \rangle}$") # doctest: +ELLIPSIS
438-
Text(...,'$\\sqrt{\\langle (\\delta x)^2 \\rangle}$')
438+
Text(...'$\\sqrt{\\langle (\\delta x)^2 \\rangle}$')
439439
>>> plt.tight_layout() # provide sufficient space for labels
440440

441441
.. image:: auto_examples/images/sphx_glr_plot_randomwalk_001.png

0 commit comments

Comments
 (0)