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

Skip to content

Commit cdb9e14

Browse files
committed
DOC: tweak code formatting
1 parent 3f09ccc commit cdb9e14

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

doc/api/prev_api_changes/api_changes_3.1.0.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ interactive backend, an `ImportError` will be raised.
2020
mplot3d auto-registration
2121
~~~~~~~~~~~~~~~~~~~~~~~~~
2222
mplot3d is always registered by default now. It is no longer necessary to
23-
import mplot3d to create 3d axes with ``fig.add_subplot(111, projection="3d")``.
23+
import mplot3d to create 3d axes with ::
24+
25+
ax = fig.add_subplot(111, projection="3d")
2426

2527
Invalid points in PathCollections
2628
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -106,7 +108,9 @@ via `Axis.set_remove_overlapping_locs` and `~pyplot.setp`).
106108

107109
The major tick labels could also be adjusted include hours and
108110
minutes, as the minor ticks are gone, so the ``major_formatter``
109-
should be ``mdates.DateFormatter("%H:%M\n%a")``.
111+
would be::
112+
113+
mdates.DateFormatter("%H:%M\n%a")
110114

111115
usetex support
112116
~~~~~~~~~~~~~~
@@ -309,7 +313,7 @@ LaTeX code in matplotlibrc file
309313
Previously, the rc file keys ``pgf.preamble`` and ``text.latex.preamble`` were
310314
parsed using commmas as separators. This would break valid LaTeX code, such as::
311315

312-
\usepackage[protrusion=true, expansion=false]{microtype}
316+
\usepackage[protrusion=true, expansion=false]{microtype}
313317

314318
The parsing has been modified to pass the complete line to the LaTeX system,
315319
keeping all commas. Passing a list of strings from within a Python script still

0 commit comments

Comments
 (0)