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

Skip to content

Commit 0e5f9ef

Browse files
committed
DOC: fix markup in whats_new
1 parent 9c97043 commit 0e5f9ef

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/users/whats_new.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,10 @@ Figure has an `~.figure.Figure.add_artist` method
227227

228228
A method `~.figure.Figure.add_artist` has been added to the
229229
:class:`~.figure.Figure` class, which allows artists to be added directly
230-
to a figure. E.g.
230+
to a figure. E.g. ::
231231

232-
::
233-
circ = plt.Circle((.7, .5), .05)
234-
fig.add_artist(circ)
232+
circ = plt.Circle((.7, .5), .05)
233+
fig.add_artist(circ)
235234

236235
In case the added artist has no transform set previously, it will be set to
237236
the figure transform (``fig.transFigure``).
@@ -242,7 +241,7 @@ easily position static elements in figure coordinates.
242241

243242

244243
Return type of ArtistInspector.get_aliases changed
245-
``````````````````````````````````````````````````
244+
--------------------------------------------------
246245

247246
`ArtistInspector.get_aliases` previously returned the set of aliases as
248247
``{fullname: {alias1: None, alias2: None, ...}}``. The dict-to-None mapping
@@ -254,7 +253,7 @@ changed.
254253

255254

256255
``:math:`` directive renamed to ``:mathmpl:``
257-
`````````````````````````````````````````````
256+
---------------------------------------------
258257

259258
The ``:math:`` rst role provided by `matplotlib.sphinxext.mathmpl` has been
260259
renamed to ``:mathmpl:`` to avoid conflicting with the ``:math:`` role that

0 commit comments

Comments
 (0)