@@ -125,9 +125,8 @@ Setting collection offset transform after initialization
125
125
126
126
The added `.collections.Collection.set_offset_transform ` may be used to set the
127
127
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 `.
131
130
132
131
Colors and colormaps
133
132
====================
@@ -138,7 +137,7 @@ Colormap registry (experimental)
138
137
Colormaps are now managed via `matplotlib.colormaps ` (or `.pyplot.colormaps `),
139
138
which is a `.ColormapRegistry `. While we are confident that the API is final,
140
139
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.
142
141
143
142
Colormaps can be obtained using item access::
144
143
@@ -188,7 +187,7 @@ The `~.axes.Axes.imshow` method now supports half-float arrays, i.e., NumPy
188
187
arrays with dtype ``np.float16 ``.
189
188
190
189
A callback registry has been added to Normalize objects
191
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190
+ -------------------------------------------------------
192
191
193
192
`.colors.Normalize ` objects now have a callback registry, ``callbacks ``, that
194
193
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.
273
272
from matplotlib import pyplot as plt
274
273
from matplotlib.widgets import TextBox
275
274
275
+ fig = plt.figure(figsize=(4, 3))
276
276
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 ])
278
278
text_box = TextBox(ax=box_input, initial=f'{alignment} alignment',
279
279
label='', textalignment=alignment)
280
280
0 commit comments