Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a742291

Browse files
committed
DOC: Convert some blockquotes to code blocks
This seems to be the original intention in most places.
1 parent 54f1612 commit a742291

File tree

10 files changed

+16
-15
lines changed

10 files changed

+16
-15
lines changed

doc/api/prev_api_changes/api_changes_3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ looking automatic ticks in many instances. The much nicer
225225
``interval_multiples=True`` is the new default. See below to get the
226226
old behavior back:
227227

228-
.. plot::
228+
.. plot::
229229

230230
import matplotlib.pyplot as plt
231231
import datetime

doc/api/prev_api_changes/api_changes_3.3.0/behaviour.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ its ``stdin``, ``stdout``, and ``stderr`` attributes are utf8-encoded.
5252
``pyplot.xticks()`` and ``pyplot.yticks()``
5353
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5454
Previously, passing labels without passing the ticks to either `.pyplot.xticks`
55-
and `.pyplot.yticks` would result in
55+
and `.pyplot.yticks` would result in::
5656

5757
TypeError: object of type 'NoneType' has no len()
5858

doc/devel/MEP/MEP12.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ sections described above. "Clean-up" should involve:
112112
* Replace uses of `pylab` interface with `.pyplot` (+ `numpy`,
113113
etc.). See `c25ef1e
114114
<https://github.com/tonysyu/matplotlib/commit/c25ef1e02b3a0ecb279492409dac0de9b3d2c0e2>`_
115-
* Remove shebang line, e.g.:
115+
* Remove shebang line, e.g.::
116116

117117
#!/usr/bin/env python
118118

119-
* Use consistent imports. In particular:
119+
* Use consistent imports. In particular::
120120

121121
import numpy as np
122122

doc/users/prev_whats_new/whats_new_1.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,6 @@ Prefixed pkg-config for building
728728
Handling of pkg-config has been fixed in so far as it is now possible to set it
729729
using the environment variable ``PKG_CONFIG``. This is important if your
730730
toolchain is prefixed. This is done in a simpilar way as setting ``CC``
731-
or ``CXX`` before building. An example follows.
731+
or ``CXX`` before building. An example follows::
732732

733733
export PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config

doc/users/prev_whats_new/whats_new_2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Added support for QT in new ToolManager
300300
---------------------------------------
301301

302302
Now it is possible to use the ToolManager with Qt5
303-
For example
303+
For example::
304304

305305
import matplotlib
306306

doc/users/prev_whats_new/whats_new_3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Add ``ax.get_gridspec`` to ``SubplotBase``
147147
New method ``SubplotBase.get_gridspec`` is added so that users can
148148
easily get the gridspec that went into making an axes:
149149

150-
.. code::
150+
.. code::
151151
152152
import matplotlib.pyplot as plt
153153

doc/users/prev_whats_new/whats_new_3.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The automatic date formatter used by default can be quite verbose. A new
2222
formatter can be accessed that tries to make the tick labels appropriately
2323
concise.
2424

25-
.. plot::
25+
.. plot::
2626

2727
import datetime
2828
import matplotlib.pyplot as plt

doc/users/prev_whats_new/whats_new_3.3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ colorbar inherits the *extend* argument from the norm, so with
183183
``extend='both'``, for example, the colorbar will have triangular extensions
184184
for out-of-range values with colors that differ from adjacent in-range colors.
185185

186-
.. plot::
186+
.. plot::
187187

188188
import matplotlib.pyplot as plt
189189
from matplotlib.colors import BoundaryNorm

lib/matplotlib/backends/backend_agg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ def start_filter(self):
332332

333333
def stop_filter(self, post_processing):
334334
"""
335-
Save the plot in the current canvas as an image and apply
336-
the *post_processing* function.
335+
Save the current canvas as an image and apply post processing.
336+
337+
The *post_processing* function::
337338
338339
def post_processing(image, dpi):
339340
# ny, nx, depth = image.shape

lib/matplotlib/widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,9 +2569,9 @@ def on_select(min: float, max: float) -> Any
25692569
25702570
props : dict, optional
25712571
Dictionary of `matplotlib.patches.Patch` properties.
2572-
Default:
2572+
Default::
25732573
2574-
``dict(facecolor='red', alpha=0.5)``
2574+
dict(facecolor='red', alpha=0.5)
25752575
25762576
onmove_callback : func(min, max), min/max are floats, default: None
25772577
Called on mouse move while the span is being selected.
@@ -3858,9 +3858,9 @@ class PolygonSelector(_SelectorWidget):
38583858
props : dict, optional
38593859
Properties with which the line is drawn, see `matplotlib.lines.Line2D`
38603860
for valid properties.
3861-
Default:
3861+
Default::
38623862
3863-
``dict(color='k', linestyle='-', linewidth=2, alpha=0.5)``
3863+
dict(color='k', linestyle='-', linewidth=2, alpha=0.5)
38643864
38653865
handle_props : dict, optional
38663866
Artist properties for the markers drawn at the vertices of the polygon.

0 commit comments

Comments
 (0)