Skip to content

Commit 79feb4c

Browse files
committed
Move more API changes
1 parent c9240f8 commit 79feb4c

File tree

3 files changed

+35
-32
lines changed

3 files changed

+35
-32
lines changed

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/prev_api_changes/api_changes_3.2.0/behavior.rst

Lines changed: 35 additions & 0 deletions
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

0 commit comments

Comments
 (0)