@@ -125,9 +125,8 @@ Setting collection offset transform after initialization
125125
126126The added `.collections.Collection.set_offset_transform ` may be used to set the
127127offset 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
132131Colors and colormaps
133132====================
@@ -138,7 +137,7 @@ Colormap registry (experimental)
138137Colormaps are now managed via `matplotlib.colormaps ` (or `.pyplot.colormaps `),
139138which is a `.ColormapRegistry `. While we are confident that the API is final,
140139we 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
143142Colormaps can be obtained using item access::
144143
@@ -188,7 +187,7 @@ The `~.axes.Axes.imshow` method now supports half-float arrays, i.e., NumPy
188187arrays with dtype ``np.float16 ``.
189188
190189A callback registry has been added to Normalize objects
191- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190+ -------------------------------------------------------
192191
193192`.colors.Normalize ` objects now have a callback registry, ``callbacks ``, that
194193can 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