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

Skip to content

Commit cbd0409

Browse files
authored
Merge pull request #15243 from dstansby/moreapi
Move some new API changes to the correct place
2 parents 34ac5b5 + 79feb4c commit cbd0409

File tree

6 files changed

+46
-48
lines changed

6 files changed

+46
-48
lines changed

doc/api/next_api_changes/2018-09-06-AL.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

doc/api/next_api_changes/2019-02-25-AL.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/api/next_api_changes/2019-02-28-AL.rst

Lines changed: 0 additions & 26 deletions
This file was deleted.

doc/api/next_api_changes/2019-08-28-AL.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

doc/api/prev_api_changes/api_changes_3.2.0/behavior.rst

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,41 @@ at least two different bar heights, add the normal axes margins to them (in
111111
log-scale); if there is only a single bar height, expand the axes limits by one
112112
order of magnitude around it and then apply axes margins.
113113

114+
115+
Axes labels spanning multiple rows/columns
116+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117+
118+
``Axes.label_outer`` now correctly keep the x labels and tick labels visible
119+
for Axes spanning multiple rows, as long as they cover the last row of the Axes
120+
grid. (This is consistent with keeping the y labels and tick labels visible
121+
for Axes spanning multiple columns as long as they cover the first column of
122+
the Axes grid.)
123+
124+
The ``Axes.is_last_row`` and ``Axes.is_last_col`` methods now correctly return
125+
True for Axes spanning multiple rows, as long as they cover the last row or
126+
column respectively. Again this is consistent with the behavior for axes
127+
covering the first row or column.
128+
129+
The ``Axes.rowNum`` and ``Axes.colNum`` attributes are deprecated, as they only
130+
refer to the first grid cell covered by the Axes. Instead, use the new
131+
``ax.get_subplotspec().rowspan`` and ``ax.get_subplotspec().colspan``
132+
properties, which are `range` objects indicating the whole span of rows and
133+
columns covered by the subplot.
134+
135+
(Note that all methods and attributes mentioned here actually only exist on
136+
the ``Subplot`` subclass of `Axes`, which is used for grid-positioned Axes but
137+
not for Axes positioned directly in absolute coordinates.)
138+
139+
The `.GridSpec` class gained the ``nrows`` and ``ncols`` properties as more
140+
explicit synonyms for the parameters returned by ``GridSpec.get_geometry``.
141+
142+
143+
Locators
144+
~~~~~~~~
145+
When more than `.Locator.MAXTICKS` ticks are generated, the behavior of
146+
`.Locator.raise_if_exceeds` changed from raising a RuntimeError to emitting a
147+
log at WARNING level.
148+
114149
nonsingular Locators
115150
~~~~~~~~~~~~~~~~~~~~
116151
``Locator.nonsingular`` (introduced in mpl 3.1), ``DateLocator.nonsingular``, and
@@ -231,6 +266,10 @@ display units rather than in inches, which it previously did.
231266
The new behavior is the correct one given the uses of ``get_canvas_width_height``
232267
in the rest of the codebase.
233268

269+
The pgf backend now includes images using ``\includegraphics`` instead of
270+
``\pgfimage`` if the version of ``graphicx`` is recent enough to support the
271+
``interpolate`` option (this is detected automatically).
272+
234273
`~matplotlib.cbook`
235274
~~~~~~~~~~~~~~~~~~~
236275
The default value of the "obj_type" parameter to ``cbook.warn_deprecated`` has
@@ -260,4 +299,3 @@ package, and Axes methods that take a ``norm`` parameter.
260299

261300
If extra kwargs are passed to `.LogScale`, `TypeError` will now be
262301
raised instead of `ValueError`.
263-

doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ Passing scalars to parameter *where* in ``fill_between()`` and
139139
broadcasted to the size of *x*. Non-matching sizes will raise a ``ValueError``
140140
in the future.
141141

142+
``tight_layout()``
143+
~~~~~~~~~~~~~~~~~~
144+
The ``renderer`` parameter to `.Figure.tight_layout` is deprecated; this method
145+
now always uses the renderer instance cached on the `.Figure`.
146+
142147
rcParams
143148
~~~~~~~~
144149
The ``rcsetup.validate_animation_writer_path`` function is deprecated.
@@ -178,6 +183,8 @@ PGF
178183
``backend_pgf.repl_escapetext`` and ``backend_pgf.repl_mathdefault`` are
179184
deprecated.
180185

186+
``RendererPgf.latexManager`` is deprecated.
187+
181188
FigureCanvas
182189
~~~~~~~~~~~~
183190
``FigureCanvasBase.draw_cursor`` (which has never done anything and has never
@@ -269,5 +276,3 @@ from the public API in future versions.
269276

270277
``style.core.is_style_file`` and ``style.core.iter_style_files``
271278
are deprecated.
272-
273-

0 commit comments

Comments
 (0)