Skip to content

Draft: Contour kwarg for negative_linestyles #23102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 145 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
20d7d81
Contour kwarg for negative_linestyles
andrew-fennell May 22, 2022
e0b46e8
DOC: do not suggest to sudo pip install Matplotlib
tacaswell May 9, 2022
3a11183
Bump docker/setup-qemu-action from 1 to 2
dependabot[bot] May 9, 2022
c497bb8
Fix some possible encoding issues for non-utf8 systems.
anntzer May 9, 2022
1d8aeed
DOC: Fix charset declaration in redirects
QuLogic May 10, 2022
de4b003
enable sca on subfigure axes
rcomer May 6, 2022
60d0c21
Specify that style files are utf-8.
anntzer May 10, 2022
b257779
Add test to close legend issue
oscargus May 9, 2022
ea06735
Suppress exception chaining in FontProperties.
anntzer May 12, 2022
5dd14a7
Suppress traceback chaining for tex subprocess failures.
anntzer May 12, 2022
709412c
Factor out errorevery parsing for 2D and 3D errorbars.
anntzer May 12, 2022
752ee10
Demonstrate both usetex and non-usetex in demo_text_path.py.
anntzer May 10, 2022
e86dc6c
Fix missing section header for nightly builds
QuLogic May 14, 2022
e0fa742
Fix issue with hist and float16 data
oscargus May 14, 2022
34b71ac
Fix variable initialization due to jump bypassing it
Biswa96 May 15, 2022
925136f
Add rrulewrapper to docs
oscargus May 14, 2022
77c4d78
ENH: Use rcParams savefig.directory on macosx backend
greglucas Jan 10, 2022
343a6a4
TST: macosx savefig respects rcParam setting
greglucas Jan 10, 2022
84f0bb8
TST: fully parameterize test_lazy_linux_headless
tacaswell Apr 8, 2022
8249525
Use contourpy for quad contour calculations
ianthomas23 Feb 26, 2022
ca6fa20
Review comments
ianthomas23 May 18, 2022
d9195ef
Cleanup Annotation.update_position.
anntzer Oct 3, 2021
e4e49d6
doc: mathtext example use axhspan instead of fill_between
megies May 18, 2022
e587af2
FIX: fix check_1d to also check for ndim
jklymak May 5, 2022
be9684d
Update setupext.py
wqh17101 Apr 1, 2022
2274996
Update setupext.py
wqh17101 Apr 1, 2022
891db5d
Update setupext.py
wqh17101 Apr 1, 2022
5e12d59
Update setupext.py
wqh17101 Apr 1, 2022
84c0c55
Update setupext.py
wqh17101 Apr 2, 2022
09577ac
Pathlibify autotools invocation in build.
anntzer May 18, 2022
41f5284
Slight refactor of _c_internal_utils to linewrap it better.
anntzer May 18, 2022
f52a307
Fix installing contourpy on CI
QuLogic May 19, 2022
3e5d885
TST: forgive more failures on pyside2 / pyside6 cross imports
tacaswell May 18, 2022
b652c62
TST: use enum for signal values
tacaswell May 18, 2022
db046ff
DOC: put the gallery keywords in the meta tag [skip actions] [skip az…
jklymak Feb 5, 2022
4da3f84
DOC: remove all keywords except codex
jklymak Feb 21, 2022
8dcddf6
MNT: Remove dummy_threading because threading is always available
greglucas May 19, 2022
5d2c11e
Slightly simplify tcl/tk load in extension.
anntzer May 17, 2022
b3e6d4b
MNT: Remove deprecated axis.cla()
greglucas May 20, 2022
e82ef37
MNT: Remove positional argument handling in LineCollection
greglucas May 20, 2022
4f2e224
MNT: Remove key_press and button_press from FigureManager
greglucas May 20, 2022
d796a3e
MNT: Deprecate date_ticker_factory (#23081)
oscargus May 21, 2022
99ea602
more explicit in windows doc build instructions (#23067)
story645 May 22, 2022
e750933
Move test that fig.add_axes() needs parameters
timhoffm May 21, 2022
0ebe870
Normalize tk load failures to ImportErrors.
anntzer May 21, 2022
1e073b9
Fix width/height inversion in dviread debug helper.
anntzer May 21, 2022
947bbb4
Ensure updated monkey-patching of sphinx-gallery EXAMPLE_HEADER (#23092)
timhoffm May 22, 2022
9c0bda5
Improve error for invalid format strings / mispelled data keys.
anntzer May 21, 2022
5fc7e66
Tweak check for IPython pylab mode. (#23097)
anntzer May 22, 2022
9f21c57
Remove unneeded cutout for webagg in show().
anntzer May 22, 2022
5547f85
Derive new_figure_manager from FigureCanvas.new_manager.
anntzer May 21, 2022
655cec6
FIX: enable install_repl_displayhook when switching backends
tacaswell May 17, 2022
0943b0f
CI: try unreasonably long timeout
tacaswell May 19, 2022
c737df2
Fix _g_sig_digits for value<0 and delta=0.
anntzer May 23, 2022
c993cf2
Reuse subprocess_run_helper in test_pylab_integration.
anntzer May 23, 2022
6bc3373
Try to unbreak CI by xfailing OSX Tk tests (#23095)
timhoffm May 24, 2022
9d200f0
DOC fixed duplicate/wrong default
davidgilbertson May 24, 2022
023891d
MNT: Remove get/set window title methods from FigureCanvas
greglucas May 20, 2022
951bc72
MNT: Remove deprecated get_label_coords from contourLabeler
greglucas May 21, 2022
10ce401
MNT: Remove return_all kwarg from gridspec get_position
greglucas May 22, 2022
ae50bef
MNT: Remove minimum_descent from TextArea
greglucas May 22, 2022
5ad7f8c
MNT: Make optional parameters to Axes keyword only
greglucas May 22, 2022
4859278
MNT: Remove the renamed parameter s to signal in callback registry
greglucas May 22, 2022
281a942
MNT: Remove align from sphinxext.plot_directive
greglucas May 22, 2022
9b43c91
MNT: Remove ability to pass URLs to imread()
greglucas May 22, 2022
d8c6a4a
MNT: Remove network marker from pytest
greglucas May 22, 2022
68baace
MNT: Remove deprecated widget properties
greglucas May 22, 2022
fc8bc8e
MNT: Remove properties and methods from Subplot
greglucas May 22, 2022
1a6377e
Handle NaN in bar labels and error bars
oscargus Apr 28, 2022
39735ac
Remove redundant rcparam default
oscargus May 24, 2022
f8675f8
Fix spelling errors
jsoref May 18, 2022
2359b70
DEV: ignore spelling fixes
jsoref May 18, 2022
c3a5246
Remove newline from start of deprecation warnings
QuLogic May 25, 2022
f7632d8
Make module deprecation messages consistent
QuLogic May 25, 2022
6ece796
Unpin coverage again
QuLogic May 25, 2022
00705b6
Update requirements/testing/all.txt
tacaswell May 25, 2022
216b1e2
Drop pytest warning config in nightly tests
QuLogic May 25, 2022
5e166f0
Tell Pytest to only look in `lib` by default
QuLogic May 25, 2022
bde32f8
DOCS Fix typos
davidgilbertson May 25, 2022
c4ca46d
Update axes_grid.py
davidgilbertson May 25, 2022
223586e
Update tutorials/toolkits/axes_grid.py
davidgilbertson May 25, 2022
a3d761d
Update interactive_guide.rst
davidgilbertson May 26, 2022
18ac29c
MNT: Clean up macosx backend set_message
greglucas Nov 25, 2021
0b5dba1
FIX: Disable cursorRect updates from within macosx backend
greglucas May 1, 2022
c6f84b1
Fix format error in switcher.json
timhoffm May 26, 2022
5cbff7c
DOCS remove duplicate text (#23149)
davidgilbertson May 27, 2022
253e505
Update artist.py (#23150)
davidgilbertson May 27, 2022
81d493d
No longer call draw_if_interactive in parasite_axes. (#23156)
anntzer May 27, 2022
b414dc8
Minor fix for astropy units support broken in earlier PR
oscargus May 26, 2022
2e80f85
Tweak subprocess_run_helper.
anntzer May 23, 2022
d20f37a
Added my (open access) book (#23161)
rougier May 30, 2022
9f08de5
DOC: Add stackplot to plot types listing and added blues to grid styl…
story645 May 18, 2022
821acfb
Fix typo in gradient_bar example
davidgilbertson May 31, 2022
c0e4097
DOC: Fix a few typos in fill_between_alpha example
davidgilbertson May 31, 2022
e3da1fe
Deprecate passing most Legend arguments positionally (#23166)
QuLogic May 31, 2022
d1865e8
Restore accidentally removed pytest.ini and tests.py.
anntzer May 27, 2022
d8423e9
Improve docstring of triplot() and PatchCollection
timhoffm Jun 1, 2022
5c98c14
Make sure SubFigure has _cachedRenderer
oscargus Jun 1, 2022
3507c58
DOC: Migrate from sphinx-panels to sphinx-design
QuLogic May 31, 2022
d74ed7d
DOC: Use sphinx-design's buttons
QuLogic May 31, 2022
814d7ba
Corrected for artist.Artist.set_agg_filter
May 31, 2022
5933662
Corrected docstring for artist.Artist.set_agg_filter
May 31, 2022
3f73d58
ENH: update ticks when requesting labels
jklymak May 31, 2022
63659fd
TST: simple test
jklymak May 31, 2022
af5edfb
DOC: add change note
jklymak May 31, 2022
b930102
Move towards having get_shared_{x,y}_axes return immutable views.
anntzer Nov 10, 2021
b05151c
FIX: allow float markevery with nans in line data in _mark_every_path()
rc Feb 21, 2022
522832c
Cleanup documentation generation for pyplot
timhoffm Mar 19, 2022
7c23b1f
Point the version switcher to a name listed in switcher.json
timhoffm May 29, 2022
adba836
Init FigureCanvasAgg._lastKey at class-level.
anntzer Jun 1, 2022
de82eaa
Simplify webagg blitting.
anntzer Jun 1, 2022
639c784
MNT: Remove keyword arguments to gca()
greglucas May 20, 2022
b4906e0
MNT: make renderer always optional
jklymak Mar 31, 2022
69dc5ec
MNT: change default dates to 1970-01-01 to -02
jklymak Jun 2, 2022
e6c9ae4
TST: fix the tests
jklymak Jun 2, 2022
9f6d467
DOC: add behavior change
jklymak Jun 2, 2022
eeb2a47
Add tests for date module
oscargus May 8, 2022
b1d483e
Rework tricontour and tricontourf documentation
timhoffm Jun 4, 2022
cf09d36
DOC: link the trasnforms tutorial from the module
jklymak Jun 7, 2022
91ccf1d
DOC: changed dash reference to public link
story645 Jun 8, 2022
7c198ca
DOC: recommend numpy random number generator class
rcomer Jun 8, 2022
79690c5
DOC: Fix version switcher links to documentation
melissawm Jun 8, 2022
53d3a9e
DOC: account for configuration changes in pydata-sphinx-theme
tacaswell Jun 9, 2022
9a3bb3a
BLD: pin pydata-sphinx-theme forward
tacaswell Jun 9, 2022
985441c
Fix the vertical alignment of overunder symbols.
tfpf Jun 6, 2022
f69a698
Image comparison test for overunder symbol alignment.
tfpf Jun 7, 2022
101e32a
Expire BoxStyle._Base deprecation.
anntzer Jun 10, 2022
2527c6f
ENH: simple compressed layout
jklymak Jan 22, 2022
7de97f6
honour panchor keyword for colorbar on subplot
rcomer Jun 4, 2022
a3690c5
MNT: Move locally defined test marks
oscargus May 14, 2022
30e3f9c
Correct docs and use keyword arguments in _mathtext.py
oscargus Jun 2, 2022
315c0ca
Fix invalid value in radio buttons example
timhoffm Jun 10, 2022
a31b3a8
Only import setuptools_scm when we are in a matplotlib git repo
timhoffm May 26, 2022
74f8459
Add tests, improve error messages, and use argument checks to simplif…
oscargus Jun 2, 2022
eab5dc7
Remove *math* parameter of various mathtext internal APIs.
anntzer Jan 12, 2022
d41d513
Rename test markers
oscargus Jun 11, 2022
1188b3c
Don't allow `r"$\left\\|\right.$"`, as in TeX.
anntzer Jun 11, 2022
1f548db
Small simplifications to mathtext tests.
anntzer Jun 11, 2022
27f8a5d
Rename ncol parameter to ncols
oscargus Jun 3, 2022
6cb3d92
Support not embedding glyphs in svg mathtests.
anntzer Apr 17, 2022
3c479e2
Fix argument checking for set_interpolation_stage
oscargus Jun 11, 2022
d8c7443
Add a helper to generate mathtext error strings.
anntzer Jun 11, 2022
db36ba5
DOC: remove Blue Book url
rcomer Jun 12, 2022
95cc6f4
Add note about Inkscape install on Windows
oscargus Jun 12, 2022
9e67dae
Added tests for contour linestyles and negative_linestyles
andrew-fennell Jun 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ install:
- conda create -q -n test-environment python=%PYTHON_VERSION% tk "pip<22.0"
- activate test-environment
# pull pywin32 from conda because on py38 there is something wrong with finding
# the dlls when insalled from pip
# the dlls when installed from pip
- conda install -c conda-forge pywin32
# install pyqt from conda-forge
- conda install -c conda-forge pyqt
Expand Down
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ c1a33a481b9c2df605bcb9bef9c19fe65c3dac21

# style: check-docstring-first pre-commit hook
046533797725293dfc2a6edb9f536b25f08aa636

# chore: fix spelling errors
686c9e5a413e31c46bb049407d5eca285bcab76d
2 changes: 1 addition & 1 deletion .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
steps:
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ jobs:

# Install dependencies from PyPI.
python -m pip install --upgrade $PRE \
cycler fonttools kiwisolver numpy packaging pillow pyparsing \
python-dateutil setuptools-scm \
'contourpy>=1.0.1' cycler fonttools kiwisolver numpy packaging \
pillow pyparsing python-dateutil setuptools-scm \
-r requirements/testing/all.txt \
${{ matrix.extra-requirements }}

Expand Down Expand Up @@ -221,14 +221,6 @@ jobs:
run: |
python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple --upgrade numpy pandas

# Turn all warnings to errors, except ignore the distutils deprecations and the find_spec warning
cat >> pytest.ini << EOF
filterwarnings =
error
ignore:.*distutils:DeprecationWarning
ignore:DynamicImporter.find_spec\(\) not found; falling back to find_module\(\):ImportWarning
EOF

- name: Install Matplotlib
run: |
ccache -s
Expand Down
3 changes: 3 additions & 0 deletions .matplotlib-repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The existence of this file signals that the code is a matplotlib source repo
and not an installed version. We use this in __init__.py for gating version
detection.
2 changes: 1 addition & 1 deletion doc/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ documentation. All of the documentation is written using sphinx, a
python documentation system built on top of ReST. This directory contains

* users - the user documentation, e.g., installation, plotting tutorials,
configuration tips, faq, explaations, etc.
configuration tips, faq, explanations, etc.

* devel - documentation for Matplotlib developers

Expand Down
49 changes: 6 additions & 43 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:root {
--sd-color-primary: #11557C;
--sd-color-primary-highlight: #003c63;
}

a {
color: #11557C;
text-decoration: none;
Expand Down Expand Up @@ -145,7 +150,7 @@ hr.box-sep {
}


/* multi colunm TOC */
/* multi column TOC */
.contents ul {
list-style-type: none;
padding-left: 2em;
Expand Down Expand Up @@ -174,29 +179,6 @@ hr.box-sep {
font-size: 1.0em;
}


.mpl-button {
background: #11557C;
font-weight: normal;
display: inline-block;
padding: 0 1em;
line-height: 2.8;
font-size: 16px;
text-align: center;
cursor: pointer;
color: #fff;
text-decoration: none;
border-radius: 6px;
z-index: 1;
transition: background .25s ease;
}

.mpl-button:hover, .mpl-button:active, .mpl-button:focus {
background: #003c63;
outline-color: #003c63;
}


/* Hide red ¶ between the thumbnail and caption in gallery

Due the way that sphinx-gallery floats its captions the perma-link
Expand Down Expand Up @@ -251,25 +233,6 @@ table.property-table td {
margin: 2.75rem 0;
}

.sidebar-donate .mpl-button {
/* fix width to width of cheatsheet */
width: 210px;
}

/* Two columns for install code blocks */
div.twocol {
padding-left: 0;
padding-right: 0;
display: flex;
gap: 20px;
}

div.twocol > div {
flex-grow: 1;
padding: 0;
margin: 0;
}

/* Fix selection of parameter names; remove when fixed in the theme
* https://github.com/sphinx-doc/sphinx/pull/9763
*/
Expand Down
17 changes: 11 additions & 6 deletions doc/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
[
{
"name": "3.5 (stable)",
"version": "stable"
"version": "stable",
"url": "https://matplotlib.org/stable"
},
{
"name": "3.6 (dev)",
"version": "devdocs"
"version": "devdocs",
"url": "https://matplotlib.org/devdocs"
},
{
"name": "3.4",
"version": "3.4.3"
"version": "3.4.3",
"url": "https://matplotlib.org/3.4.3"
},
{
"name": "3.3",
"version": "3.3.4"
"version": "3.3.4",
"url": "https://matplotlib.org/3.3.4"
},
{
"name": "2.2",
"version": "2.2.4"
},
"version": "2.2.4",
"url": "https://matplotlib.org/2.2.4"
}
]
7 changes: 2 additions & 5 deletions doc/_templates/donate_sidebar.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@



<div class="sidebar-donate">
<a href="https://numfocus.org/donate-to-matplotlib" target="_blank">
<span class="mpl-button" >Support Matplotlib</span>
<a class="sd-btn sd-btn-primary sd-fs-5 sd-px-5 sd-py-2" href="https://numfocus.org/donate-to-matplotlib" target="_blank">
Support Matplotlib
</a>
</div>
1 change: 0 additions & 1 deletion doc/api/axis_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Inheritance
:nosignatures:

Axis.clear
Axis.cla
Axis.get_scale


Expand Down
1 change: 1 addition & 0 deletions doc/api/dates_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
.. automodule:: matplotlib.dates
:members:
:undoc-members:
:exclude-members: rrule
:show-inheritance:
6 changes: 3 additions & 3 deletions doc/api/next_api_changes/behavior/22229-TAC.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AritistList proxies copy contents on iteration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ArtistList proxies copy contents on iteration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When iterating over the contents of the the dynamically generated proxy lists
When iterating over the contents of the dynamically generated proxy lists
for the Artist-type accessors (see :ref:`Behavioural API Changes 3.5 - Axes
children combined`), a copy of the contents is made. This ensure that artists
can safely be added or removed from the Axes while iterating over their children.
Expand Down
13 changes: 13 additions & 0 deletions doc/api/next_api_changes/behavior/22567-IT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
New algorithm keyword argument to contour and contourf
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The contouring functions `~matplotlib.axes.Axes.contour` and
`~matplotlib.axes.Axes.contourf` have a new keyword argument *algorithm* to
control which algorithm is used to calculate the contours. There is a choice
of four algorithms to use, and the default is to use ``algorithm='mpl2014'``
which is the same algorithm that Matplotlib has been using since 2014.

Other possible values of the *algorithm* keyword argument are ``'mpl2005'``,
``'serial'`` and ``'threaded'``; see the
`ContourPy documentation <https://contourpy.readthedocs.io>`_ for further
details.
9 changes: 9 additions & 0 deletions doc/api/next_api_changes/behavior/22745-JMK.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
No need to specify renderer for get_tightbbox and get_window_extent
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``get_tightbbox`` and `~.Artist.get_window_extent` methods
no longer require the *renderer* kwarg, saving users from having to
querry it from ``fig.canvas.get_renderer``. If the *renderer*
kwarg is not supplied these methods first check if there is a cached renderer
from a previous draw and use that. If there is no cahched renderer, then
the methods will use ``fig.canvas.get_renderer()`` as a fallback.
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/behavior/23031-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The encoding of style file is now specified to be utf-8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It has been impossible to import Matplotlib with a non UTF-8 compatible locale
encoding because we read the style library at import time. This change is
formalizing and documenting the status quo so there is no deprecation period.
6 changes: 6 additions & 0 deletions doc/api/next_api_changes/behavior/23170-JMK.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
``get_ticklabels`` now always populates labels
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Previously `.Axis.get_ticklabels` (and `.Axes.get_xticklabels`,
`.Axes.get_yticklabels`) would only return empty strings unless a draw had
already been performed. Now the ticks and their labels are updated when the
labels are requested.
9 changes: 9 additions & 0 deletions doc/api/next_api_changes/behavior/23188-JMK.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Default date limits changed to 1970-01-01 to 1970-01-02
-------------------------------------------------------

Previously the default limits for an empty axis set up for dates
(`.Axis.axis_date`) was 2000-01-01 to 2010-01-01. This has been
changed to 1970-01-01 to 1970-01-02. With the default epoch, this
makes the numeric limit for date axes the same as for other axes
(0.0-1.0), and users are less likely to set a locator with far too
many ticks.
6 changes: 6 additions & 0 deletions doc/api/next_api_changes/deprecations/21584-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Modifications to the Groupers returned by ``get_shared_x_axes`` and ``get_shared_y_axes``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... are deprecated. In the future, these methods will return immutable views
on the grouper structures. Note that previously, calling e.g. ``join()``
would already fail to set up the correct structures for sharing axes; use
`.Axes.sharex` or `.Axes.sharey` instead.
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/deprecations/22507-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The *math* parameter of ``mathtext.get_unicode_index``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In math mode, ASCII hyphens (U+002D) are now replaced by unicode minus signs
(U+2212) at the parsing stage.
7 changes: 7 additions & 0 deletions doc/api/next_api_changes/deprecations/23045-OG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``checkdep_usetex`` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This method was only intended to disable tests in case no latex install was
found. As such, it is considered to be private and for internal use only.

Please vendor the code if you need this.
8 changes: 8 additions & 0 deletions doc/api/next_api_changes/deprecations/23081-OG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
``date_ticker_factory`` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``date_ticker_factory`` method in the `matplotlib.dates` module is
deprecated. Instead use `~.AutoDateLocator` and `~.AutoDateFormatter` for a
more flexible and scalable locator and formatter.

If you need the exact ``date_ticker_factory`` behavior, please copy the code.
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/deprecations/23166-ES.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``Legend`` constructor
~~~~~~~~~~~~~~~~~~~~~~

All arguments to `.legend.Legend` other than *parent*, *handles*, and *labels*
will become keyword-only in a future version.
4 changes: 4 additions & 0 deletions doc/api/next_api_changes/removals/23076-GL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Passing positional arguments to LineCollection has been removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use specific keyword argument names now.
4 changes: 4 additions & 0 deletions doc/api/next_api_changes/removals/23077-GL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Keyword arguments to ``gca()`` have been removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There is no replacement.
4 changes: 4 additions & 0 deletions doc/api/next_api_changes/removals/23078-GL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
``Axis.cla()`` has been removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use `.Axis.clear()` instead.
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/removals/23079-GL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``key_press`` and ``button_press`` have been removed from FigureManager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Trigger the events directly on the canvas using
``canvas.callbacks.process(event.name, event)`` for key and button events.
50 changes: 50 additions & 0 deletions doc/api/next_api_changes/removals/23093-GL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Get/set window title methods have been removed from the canvas
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use the corresponding methods on the FigureManager if using pyplot,
or GUI-specific methods if embedding.

``ContourLabeler.get_label_coords()`` has been removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There is no replacement, it was considered an internal helper.

The **return_all** keyword argument has been removed from ``gridspec.get_position()``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The **minimum_descent** has been removed from ``TextArea``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The minimum_descent is now effectively always True.

Extra parameters to Axes constructor
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Parameters of the Axes constructor other than *fig* and *rect* are now keyword only.

``sphinext.plot_directive.align`` has been removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use ``docutils.parsers.rst.directives.images.Image.align`` instead.

``imread()`` no longer accepts URLs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Passing a URL to `~.pyplot.imread()` has been removed. Please open the URL for
reading and directly use the Pillow API
(``PIL.Image.open(urllib.request.urlopen(url))``, or
``PIL.Image.open(io.BytesIO(requests.get(url).content))``) instead.

Deprecated properties of widgets have been removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

These include ``cids``, ``cnt``, ``observers``, ``change_observers``,
and ``submit_observers``.

Removal of methods and properties of ``Subplot``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

These include ``get_geometry()``, ``change_geometry()``, ``figbox``,
``numRows``, ``numCols``, ``update_params()``, ``is_first_row()``,
``is_first_col()``, ``is_last_row()``, ``is_last_col()``. The subplotspec
contains this information and can be used to replace these methods and properties.
4 changes: 4 additions & 0 deletions doc/api/next_api_changes/removals/23237-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
``BoxStyle._Base`` and ``transmute`` method of boxstyles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... have been removed. Boxstyles implemented as classes no longer need to
inherit from a base class.
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_0.65.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Changes for 0.65
connect and disconnect

Did away with the text methods for angle since they were ambiguous.
fontangle could mean fontstyle (obligue, etc) or the rotation of the
fontangle could mean fontstyle (oblique, etc) or the rotation of the
text. Use style and rotation instead.
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_0.70.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Changes for 0.70
MplEvent factored into a base class Event and derived classes
MouseEvent and KeyEvent
Removed definct set_measurement in wx toolbar
Removed defunct set_measurement in wx toolbar
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_0.72.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Changes for 0.72
- Line2D, Text, and Patch copy_properties renamed update_from and
moved into artist base class

- LineCollecitons.color renamed to LineCollections.set_color for
- LineCollections.color renamed to LineCollections.set_color for
consistency with set/get introspection mechanism,

- pylab figure now defaults to num=None, which creates a new figure
Expand Down
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_0.98.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ The ``Polar`` class has moved to :mod:`matplotlib.projections.polar`.
.. [3] :meth:`matplotlib.axes.Axes.set_position` now accepts either
four scalars or a :class:`matplotlib.transforms.Bbox` instance.

.. [4] Since the recfactoring allows for more than two scale types
.. [4] Since the refactoring allows for more than two scale types
('log' or 'linear'), it no longer makes sense to have a toggle.
``Axes.toggle_log_lineary()`` has been removed.

Expand Down
Loading