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

Skip to content

Commit af602ae

Browse files
committed
Fix some typos in 3.5 What's new
1 parent 8eb3a06 commit af602ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/users/prev_whats_new/whats_new_3.5.0.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ Setting collection offset transform after initialization
125125

126126
The added `.collections.Collection.set_offset_transform` may be used to set the
127127
offset transform after initialization. This can be helpful when creating a
128-
`.collections.Collection` outside an Axes object and later adding it with
129-
`.Axes.add_collection()` and settings the offset transform to
130-
`.Axes.transData`.
128+
`.collections.Collection` outside an Axes object, and later adding it with
129+
`.Axes.add_collection()` and setting the offset transform to `.Axes.transData`.
131130

132131
Colors and colormaps
133132
====================
@@ -138,7 +137,7 @@ Colormap registry (experimental)
138137
Colormaps are now managed via `matplotlib.colormaps` (or `.pyplot.colormaps`),
139138
which is a `.ColormapRegistry`. While we are confident that the API is final,
140139
we formally mark it as experimental for 3.5 because we want to keep the option
141-
to still adapt the API for 3.6 should the need arise.
140+
to still modify the API for 3.6 should the need arise.
142141

143142
Colormaps can be obtained using item access::
144143

@@ -188,7 +187,7 @@ The `~.axes.Axes.imshow` method now supports half-float arrays, i.e., NumPy
188187
arrays with dtype ``np.float16``.
189188

190189
A callback registry has been added to Normalize objects
191-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190+
-------------------------------------------------------
192191

193192
`.colors.Normalize` objects now have a callback registry, ``callbacks``, that
194193
can be connected to by other objects to be notified when the norm is updated.
@@ -273,8 +272,9 @@ of the text inside the Axes of the `.TextBox` widget.
273272
from matplotlib import pyplot as plt
274273
from matplotlib.widgets import TextBox
275274

275+
fig = plt.figure(figsize=(4, 3))
276276
for i, alignment in enumerate(['left', 'center', 'right']):
277-
box_input = plt.axes([0.2, 0.7 - i*0.2, 0.6, 0.1])
277+
box_input = fig.add_axes([0.1, 0.7 - i*0.3, 0.8, 0.2])
278278
text_box = TextBox(ax=box_input, initial=f'{alignment} alignment',
279279
label='', textalignment=alignment)
280280

0 commit comments

Comments
 (0)