Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df85ec0

Browse filesBrowse files
committed
subfigure _axstack property
_axstack whitespace _parent._axstack move clear functions into figurebase clear subfigures first Clear child subfigures tests move property back to init changelog reduce changelog TEST: partial subfig clearing Clear all children subfigs in parent Clear toolbars only in Figure Restore whitespace on :684 flake8 old comment TITLE UNDERLINE Expire mathttext-related deprecations Fixed review comments and a few more removals Use PNG image as the icon for Tk plot windows Fix loading user-defined icons for Tk toolbar Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com> Prevent tooltips from overlapping buttons in NavigationToolbar2Tk Update doc/api/next_api_changes/behavior/22135-JSS3.rst Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Fix loading user-defined icons for Qt plot window Update both zoom/pan states on wx when triggering from keyboard. Previously, typing "o" and "p" on a wx window would result in both the zoom and the pan button being pressed at the same time. Fix that by relying on the same strategy as all other backends. Switch transOffset to offset_transform. Note that most APIs *previously* already accepted *offset_transform* as kwarg, due to the presence of the `set_offset_transform` setter. Prefer that name (shortening it to `offset_trf` for local variables). Backcompat for the old `transOffset` name is kept in most places by introducing a property alias. Started deprecating tight_bbox and tight_layout Recreated deprecated files and changed references Fix drawing animated artists changed in selector callback Fix getting tuple of animated artists; add comments and test Use list comprehension instead of filter Fix z_order Improve docstring and add comments Ensure log formatters use Unicode minus Fixes #21540 FIX: better repr for subgridspecs FIX: add test for identical subgridspec FIX Use a fixture for widget test axes Improved coverage of mathtext and removed unused code Removed dev from 3.10-version DOC: explain too many ticks DOC: artist extent Update doc/users/faq/howto_faq.rst Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Apply suggestions from code review Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> FIX: streamline examples DOC: add new example Update doc/users/faq/howto_faq.rst Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Apply suggestions from code review Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> FIX: macosx check case-insensitive app name Only check for "python" case insensitive to match either Python or pythonw. Fix typo in `axhline` docstring Removed unused variables etc. Passed on sides and pad_to Use standard toolbar in wx. The previous approach manually positioned the toolbar to have it at the bottom of the window, but this can in fact be achieved just with style=wx.TB_BOTTOM. Removing manual sizing of the toolbar also fixes a bug previously present on Windows, whereby a `set_size_inches` reducing the size of the canvas would *not* reduce the window width, likely because it was forced to its max value by the toolbar's explicit size. Expire axes_grid1/axisartist deprecations. Clean up 3d plot box_aspect zooming linting Cleanup Make zoom and dist private attrs Deprecate Axes3D.dist Deprecate Axes3D.dist DOC: Fix upstream URL for merge in CircleCI DOC: Add hatch API to reference DOC: Document default cap styles - remove '(default)' from cap style demo as this is only true for Line2D and the default rcParameters - document default cap styles for Line2D and Patch in their cap style setters - document default cap style for GraphicsContextBase in the same way as it's already done for joinstyle Factor out underline-thickness lookups in mathtext. Just adding a small helper function. Fix merge Update _formlayout.py Bump minimum NumPy to 1.19 Fix name typo in API changes DOC: git:// is deprecated. See https://github.blog/2021-09-01-improving-git-protocol-security-github/ Today is a brownout day. I removed the sentence that git:// is RO and https:// is RW as you soon won't be able to use git:// Personally I use https:// as RO and ssh:// as RW, but I understand it might not be convenient on windows. Stop sorting artists in Figure Options dialog With #18216, the order that artists are added to an Axes is their canonical order. The dialog should not be sorting them in some other manner. Additionally, this fixes a bug in that `apply_callback` indexes back to the original list, which means that changes will be made to the *wrong* artist if sorting actually occurred. It also makes the legend almost entirely wrong as well. See https://discourse.matplotlib.org/t/bug-on-re-generate-automatic-legend-of-matplotlib-figure-property/22511 Document ArtistList DOC: Document default join style in the same way as the default cap styles. Jointly track x and y in PolygonSelector. It's easier to track them in a single list. Also init _selection_artist and _polygon_handles with empty arrays, as there's no reason to pretend that they start with 0, 0. On the other hand, _xys does need to start as a non-empty array as the last point gets updated as being the cursor position. Verify that lib/src is not changed on -doc backports ci: Use released version to build v*-doc branches Fix typo in `tutorials/intermediate/arranging_axes.py` Trivial doc fix to annotations tutorial. Initially I just wanted to capitalize "matplotlib", but the wording was a bit awkward too, so... ENH: implement and use base layout_engine for more flexible layout. FIX: typo Remove some unnecessary getattrs. Figures always have a canvas attached (even if it's just a FigureCanvasBase), and canvases always have a "manager" attribute (which may be None). Canvases also always have a "toolbar" attribute (which also may be None). Altogether this allows avoiding a couple of getattrs. FIX: Return value instead of enum in get_capstyle/_joinstyle for MarkerStyle and Patch (as do Line2D, Collections and GraphicsContextBase) (1) turn off the grid after creating colorbar axes (2) added a test Cleanup "anatomy of a figure" No visual change. Improve formatting of "Anatomy of a figure" - Adapt margins - Reduce figure border width (still thick but not massive) - fontfamily: make code monospace - slightly move annotations to better places Run wheel builds on PRs when requested by a label Fix typos Deprecate cleared kwarg to get_renderer. This makes it easier for to mock the agg backend (e.g., in mplcairo). Note that this is anyways only a shorthand for calling a method (`.clear()`) on the renderer itself, so just issuing that call is just as simple, more explicit, and can be done even when one just has access to the renderer and not to the canvas (an admittedly rather hypothetical case). Improve ft2font error reporting. This prints out human-readable error messages for failures. As an example, `FT2Font("setup.py")` now raises ``` RuntimeError: In FT2Font: Can not load face (unknown file format; error code 0x2) ``` Ensure that all toolbar (old/new) subclasses can be init'ed consistently i.e. with the same signature: with `canvas` as sole arg for the old-style toolbars, with `toolmanager` as sole arg for the new ones. Subclasses that explicitly support setting a parent widget keep that support (except for gtk, which stashed that in the `.win` attribute but never used it), but that argument is always optional now; the default is the canvas' parent. The goal is to later replace all _get_toolbar implementations by a simple call (always with the same signature (dependent on the value of rcParams["toolbar"])) to the correct class in the FigureManagerBase constructor. DOC: More capitalization of Axes In line with #18726. Triggered by #22242. Started deprecating afm, fontconfig_pattern, and type1font Recreated deprecated files and changed references DOC: add dropdown DOC: add dropdown Fix topbar DOC: Add all the releases Just last point releases before 3.0 DOC: update release_guide DOC: rename versions [skip azp] [skip appveyor] [skip actions] BLD: pin sphinx data theme [skip actions] [skip appveyor] [skip azp] Add some tests for minspan{x,y} in RectangleSelector Skip tests on the -doc branches DOC: fix version switcher json [skip actions] [skip appveyor] [skip azp] DOC: fix version switcher [skip actions] [skip appveyor] [skip azp] FIX Fix Qt enum access. This was missed in the global fixing of enums for PyQt6 (now using _enum everywhere). To trigger, try to interactively save a figure but input an invalid format, e.g. "foo.bar". MNT: deprecate filled parameter to colorbar The *filled* kwarg doesn't directly do anything and filling is completely controlled by the mappable. OTOH, maybe we want to reinstate the ability of *filled* to fill contours? Deprecate colorbar.draw_all. Merge main and "other" params docs in colorbar.make_axes. `colorbar.make_axes` (and `make_axes_gridspec`) are low-level enough that it's not worth the complexity in docstring interpolation to split out "main" parameters and "other" parameters, when the docstring of the more commonly used `plt.colorbar` smashes them together. (Also, `pad` is not really much more low-level than `shrink` or `aspect`...) Numpydocify _colormap_kw_doc and use it in Colorbar too. Specify the focal length for 3d plots Create a gallery example showing the different proj_type options Typo Test fix, example fix, and linting What's new, example fix Merge conflict Offset zooming of focal length Code review comments, consolidate projection functions Try and fix zooming Try to fix the focal length zooming Update example Cleanup example cleanup more example tweaks more example tweak swap plot order Enforce a positive focal length focal lentgh tests flake8 linting docstring tweak Code review changes Make focal_length a private attr linting More code review changes and tests Additional code review changes Disalbe showing cursor data on a QuadMesh by default Give the Tk toolbar buttons a flat look Simplify FontProperties.copy(). Expanded documentation of Axis.set_ticks as per discussion in issue #22262 (#22270) * Expanded documentation of Axis.set_ticks() * Fix flake8 W293 (blank line contains whitespace) warnings * Expanded the documentation even more based on discussion in issue #22262 * Update lib/matplotlib/axis.py - @jklymak rewording Co-authored-by: Jody Klymak <jklymak@gmail.com> * Reduced verbosity of doc by @jklymak 's suggestion. * On second thought, the previous wording could be seen as very ambiguous. * Update set_ticks docstring by @timhoffm compromise suggestion Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> * Removed extra sentence as per @timhoffm review * Blank line whitespace issue crept up again * Update lib/matplotlib/axis.py as per correction by @timhoffm Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Co-authored-by: unknown <> Co-authored-by: Jody Klymak <jklymak@gmail.com> Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> MNT: make colorbars locators and formatters properties TST: test setters and getters in colorbar DOC: improve crosslinking for docs FIX: small fixes DOC: fix property docstrings FIX: minorformatter None Removed unused code Fixed repr for SecondaryAxis and increase coverage for axes/_base.py Apply suggestions from code review Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Display bad format string in error message. I had something like `for i in range(n): plot(..., f"oC{i}")` which works for n up to 10, but for greater values one gets "oC10" which is not supported (which is reasonable, as some single-digit strings are actually *marker* abbreviations); mentioning the full format string in the error message ("Unrecognized character 0 in format string 'oC10'") makes it clearer. FIX: bury import of matplotlib.font_manager We need to ensure that the sub-module matplotlib.font_manager is imported when it is used in SclarFormater, however if we import it at the top level we will get circular imports. closes #22305 In mpl_toolkits, use the same floating point slop as for standard ticks. Standard ticks use _interval_contains_close (in Axis._update_ticks); do the same in mpl_toolkits and deprecate the custom slops delta1, delta2 (if such knobs are really needed, we should try to have the same API in the main library anyways). FIX: use window_extent instead Add set_cursor method to FigureCanvasTk Don't warn on grid removal deprecation is grid is hidden Fixes #21723. See #21723 (comment) for a full desciption of motivation and edge cases. Modify example for x-axis tick labels at the top Primarily describe how to do this for a single Axes (using `tick_params`). Only mention the `rcParams` in a note. Globally changing `rcParams` is usually not a good idea and should not be demonstrated. The whole topic of `rcParams` (global, context, matplotlibrc) is too long to be discussed here and not the focus of the example. Remove Axes sublist modification from docs Make bar of pie example more explicit ... by saving and using the results from Axes method calls. Also, replace the colour palette in the bar chart. Respect `position` argument in Tk toolmanager Set focus properly to ensure mouse events get delivered to Tk canvas Rework/fix Text layout cache. Instead of caching the text layout based on a bunch of properties, only cache the computation of the text's metrics, which 1) should be the most expensive part (everything else in _get_layout is relatively simple iteration and arithmetic) and 2) depends on fewer implicit parameters. In fact, the old cache key was insufficient in that it would conflate usetex and non-usetex strings together, even though they have different metrics; e.g. with the (extremely artificial) example ```python figtext(.1, .5, "foo\nbar", size=32) # (0) figtext(.1, .5, "foo\nbar", usetex=True, size=32, c="r", alpha=.5) # (1) figtext(.3, .5, "foo\nbar", usetex=True, size=32, c="r", alpha=.5) # (2) ``` the linespacing of the first usetex string (1) would be "wrong": it is bigger that the one of the second usetex string (2), because it instead reuses the layout computed for the non-usetex string (0). The motivation is also to in the future let the renderer have better control on cache invalidation (with a yet-to-be-added renderer method), e.g. multiple instances of the same renderer cache could share the same layout info. Rename outdated seaborn styles. They are kept available under a versioned name for backcompat. dangling clf Silently discard blits if bbox is outside canvas Custom cap widths in box and whisker plots in bxp() and boxplot() Add pre-commit config and dev instructions Update pre-commit hooks rst format Disable autofixes on PRs Unless manually triggered. See https://pre-commit.ci/#configuration add pre-commit to environment.yml Slow down autoupdate schedule alphabetize Add sentence about where pre-commit config is Add excludes to pre-commit config Otherwise end of lines of test images will get fixed, this also ignores all the prev_whats_new and prev_api_changes as well as vendored components (agg, gitwash) pre-comit config CI: ban coverage 6.3 that may be causing random hangs in fork test
1 parent 80d4e23 commit df85ec0
Copy full SHA for df85ec0

File tree

Expand file treeCollapse file tree

211 files changed

+6174
-5154
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

211 files changed

+6174
-5154
lines changed

‎.circleci/config.yml

Copy file name to clipboardExpand all lines: .circleci/config.yml
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ commands:
2828
name: Merge with upstream
2929
command: |
3030
if ! git remote -v | grep upstream; then
31-
git remote add upstream git://github.com/matplotlib/matplotlib.git
31+
git remote add upstream https://github.com/matplotlib/matplotlib.git
3232
fi
3333
git fetch upstream
3434
if [[ "$CIRCLE_BRANCH" != "main" ]] && \
@@ -104,7 +104,15 @@ commands:
104104
steps:
105105
- run:
106106
name: Install Matplotlib
107-
command: python -m pip install --user -ve .
107+
command: |
108+
if [[ "$CIRCLE_BRANCH" == v*-doc ]]; then
109+
# The v*-doc branches must build against the specified release.
110+
version=${CIRCLE_BRANCH%-doc}
111+
version=${version#v}
112+
python -m pip install matplotlib==${version}
113+
else
114+
python -m pip install --user -ve .
115+
fi
108116
- save_cache:
109117
key: build-deps-1
110118
paths:

‎.github/workflows/cibuildwheel.yml

Copy file name to clipboardExpand all lines: .github/workflows/cibuildwheel.yml
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
name: Build CI wheels
22

33
on:
4+
# Save CI by only running this on release branches or tags.
45
push:
56
branches:
67
- main
78
- v[0-9]+.[0-9]+.x
89
tags:
910
- v*
11+
# Also allow running this action on PRs if requested by applying the
12+
# "Run cibuildwheel" label.
13+
pull_request:
14+
types:
15+
- opened
16+
- synchronize
17+
- reopened
18+
- labeled
1019

1120
jobs:
1221
build_wheels:
22+
if: |
23+
(
24+
github.event.action == 'labeled' &&
25+
github.event.label.name == 'Run cibuildwheel'
26+
) ||
27+
contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel')
1328
name: Build wheels on ${{ matrix.os }}
1429
runs-on: ${{ matrix.os }}
1530
env:

‎.github/workflows/clean_pr.yml

Copy file name to clipboardExpand all lines: .github/workflows/clean_pr.yml
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,14 @@ jobs:
3030
printf 'The following images were both added and modified in this PR:\n%s\n' "$am"
3131
exit 1
3232
fi
33+
- name: Check for invalid backports to -doc branches
34+
if: endsWith(github.base_ref, '-doc')
35+
run: |
36+
git fetch --quiet origin "$GITHUB_BASE_REF"
37+
base="$(git merge-base "origin/$GITHUB_BASE_REF" 'HEAD^2')"
38+
lib="$(git log "$base..HEAD^2" --pretty=tformat: --name-status -- lib src |
39+
cut --fields 2 | sort || true)"
40+
if [[ -n "$lib" ]]; then
41+
printf 'Changes to the following files have no effect and should not be backported:\n%s\n' "$lib"
42+
exit 1
43+
fi

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- auto-backport-of-pr-[0-9]+
77
- v[0-9]+.[0-9]+.[0-9x]+-doc
88
pull_request:
9+
branches-ignore:
10+
- v[0-9]+.[0-9]+.[0-9x]+-doc
911

1012
env:
1113
NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
@@ -43,7 +45,7 @@ jobs:
4345
extra-requirements: '-r requirements/testing/extra.txt'
4446
XVFB_RUN: xvfb-run -a
4547
- os: ubuntu-20.04
46-
python-version: '3.10-dev'
48+
python-version: '3.10'
4749
# Re-add this when extra dependencies have wheels.
4850
# extra-requirements: '-r requirements/testing/extra.txt'
4951
XVFB_RUN: xvfb-run -a

‎.pre-commit-config.yaml

Copy file name to clipboard
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
ci:
2+
autofix_prs: false
3+
autoupdate_schedule: 'quarterly'
4+
exclude: |
5+
(?x)^(
6+
extern|
7+
lib/matplotlib/mpl-data|
8+
doc/devel/gitwash|
9+
doc/users/prev|
10+
doc/api/prev|
11+
lib/matplotlib/tests/tinypages
12+
)
13+
repos:
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v4.0.1
16+
hooks:
17+
- id: check-added-large-files
18+
- id: check-docstring-first
19+
- id: end-of-file-fixer
20+
exclude_types: [svg]
21+
- id: mixed-line-ending
22+
- id: trailing-whitespace
23+
exclude_types: [svg]
24+
- repo: https://github.com/pycqa/flake8
25+
rev: 3.9.2
26+
hooks:
27+
- id: flake8
28+
additional_dependencies: [pydocstyle>5.1.0, flake8-docstrings>1.4.0]
29+
args: ["--docstring-convention=all"]

‎azure-pipelines.yml

Copy file name to clipboardExpand all lines: azure-pipelines.yml
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
44
# https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops
55

6+
trigger:
7+
branches:
8+
exclude:
9+
- v[0-9]+.[0-9]+.[0-9x]+-doc
10+
pr:
11+
branches:
12+
exclude:
13+
- v[0-9]+.[0-9]+.[0-9x]+-doc
14+
615
stages:
716

817
- stage: Check

‎doc/_static/anatomy.png

Copy file name to clipboard
-169 KB
Loading

‎doc/_static/switcher.json

Copy file name to clipboard
+105Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
[
2+
{
3+
"name": "3.5.1 (stable)",
4+
"version": "stable"
5+
},
6+
{
7+
"name": "3.6 (devdocs)",
8+
"version": "devdocs"
9+
},
10+
{
11+
"version": "3.5.0"
12+
},
13+
{
14+
"version": "3.4.3"
15+
},
16+
{
17+
"version": "3.4.2"
18+
},
19+
{
20+
"version": "3.4.1"
21+
},
22+
{
23+
"version": "3.4.0"
24+
},
25+
{
26+
"version": "3.3.4"
27+
},
28+
{
29+
"version": "3.3.3"
30+
},
31+
{
32+
"version": "3.3.2"
33+
},
34+
{
35+
"version": "3.3.1"
36+
},
37+
{
38+
"version": "3.3.0"
39+
},
40+
{
41+
"version": "3.2.2"
42+
},
43+
{
44+
"version": "3.2.1"
45+
},
46+
{
47+
"version": "3.2.0"
48+
},
49+
{
50+
"version": "3.1.3"
51+
},
52+
{
53+
"version": "3.1.2"
54+
},
55+
{
56+
"version": "3.1.1"
57+
},
58+
{
59+
"version": "3.1.0"
60+
},
61+
{
62+
"version": "3.0.3"
63+
},
64+
{
65+
"version": "3.0.2"
66+
},
67+
{
68+
"version": "3.0.1"
69+
},
70+
{
71+
"version": "3.0.0"
72+
},
73+
{
74+
"name": "2.2",
75+
"version": "2.2.4"
76+
},
77+
{
78+
"name": "2.1",
79+
"version": "2.1.2"
80+
},
81+
{
82+
"name": "2.0",
83+
"version": "2.0.2"
84+
},
85+
{
86+
"name": "1.5",
87+
"version": "1.5.3"
88+
},
89+
{
90+
"name": "1.5",
91+
"version": "1.5.3"
92+
},
93+
{
94+
"name": "1.4",
95+
"version": "1.4.3"
96+
},
97+
{
98+
"name": "1.3",
99+
"version": "1.3.1"
100+
},
101+
{
102+
"name": "1.2",
103+
"version": "1.2.1"
104+
}
105+
]

‎doc/api/axes_api.rst

Copy file name to clipboardExpand all lines: doc/api/axes_api.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,3 +607,5 @@ Other
607607
Axes.get_transformed_clip_path_and_affine
608608
Axes.has_data
609609
Axes.set
610+
611+
.. autoclass:: matplotlib.axes.Axes.ArtistList

‎doc/api/hatch_api.rst

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
********************
2+
``matplotlib.hatch``
3+
********************
4+
5+
.. automodule:: matplotlib.hatch
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:

‎doc/api/index.rst

Copy file name to clipboardExpand all lines: doc/api/index.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ Alphabetical list of modules:
6565
font_manager_api.rst
6666
fontconfig_pattern_api.rst
6767
gridspec_api.rst
68+
hatch_api.rst
6869
image_api.rst
70+
layout_engine_api.rst
6971
legend_api.rst
7072
legend_handler_api.rst
7173
lines_api.rst

‎doc/api/layout_engine_api.rst

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
****************************
2+
``matplotlib.layout_engine``
3+
****************************
4+
5+
.. currentmodule:: matplotlib.layout_engine
6+
7+
.. automodule:: matplotlib.layout_engine
8+
:members:
9+
:inherited-members:

‎doc/api/mathtext_api.rst

Copy file name to clipboardExpand all lines: doc/api/mathtext_api.rst
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
:members:
1010
:undoc-members:
1111
:show-inheritance:
12-
:exclude-members: Box, Char, ComputerModernFontConstants, DejaVuSansFontConstants, DejaVuSerifFontConstants, FontConstantsBase, Fonts, Glue, Kern, Node, Parser, STIXFontConstants, STIXSansFontConstants, Ship, StandardPsFonts, TruetypeFonts
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Incompatible layout engines raise
2+
---------------------------------
3+
``tight_layout`` and ``constrained_layout`` are incompatible if
4+
a colorbar has been added to the figure. Invoking the incompatible layout
5+
engine used to warn, but now raises with a ``RuntimeError``.
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
``Type1Font`` objects include more properties
22
---------------------------------------------
33

4-
The `.type1font.Type1Font.prop` dictionary now includes more keys, such
5-
as ``CharStrings`` and ``Subrs``. The value of the ``Encoding`` key is
4+
The ``matplotlib._type1font.Type1Font.prop`` dictionary now includes more keys,
5+
such as ``CharStrings`` and ``Subrs``. The value of the ``Encoding`` key is
66
now a dictionary mapping codes to glyph names. The
7-
`.type1font.Type1Font.transform` method now correctly removes
7+
``matplotlib._type1font.Type1Font.transform`` method now correctly removes
88
``UniqueID`` properties from the font.
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
``FigureFrameWx.sizer``
2+
~~~~~~~~~~~~~~~~~~~~~~~
3+
... has been removed. The frame layout is no longer based on a sizer, as the
4+
canvas is now the sole child widget; the toolbar is now a regular toolbar
5+
added using ``SetToolBar``.
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Figure & subfigure clearing
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Fixed a bug in which ``Figure.clf()`` and ``Figure.clear()`` were broken
4+
when ``Figure`` contained axes not stored in ``Figure._localaxes``. Moved the
5+
``clear`` and ``clf`` methods to ``FigureBase``, so ``Subfigure``s can now be
6+
independently cleared. Added a routine to clear ``Figure.subfigs`` when
7+
``Figure.clear()`` is called. This effects the API as it removes active
8+
subfigure references when clearing a figure.
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
QuadMesh cursor data disabled by default
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Showing the cursor data of a `.QuadMesh` is now disabled by default, as it has
4+
significant performance issues with large meshes. To manually enable this
5+
use :meth:`.QuadMesh.set_show_cursor_data`.
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
``transOffset`` parameter name
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
The ``transOffset`` parameter of `.Collection.set_offset_transform` and the
4+
various ``create_collection`` methods of legend handlers has been renamed to
5+
``offset_transform`` (consistently with the property name).
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
``NavigationToolbar2GTK3`` window
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
The *window* parameter to ``NavigationToolbar2GTK3`` had no effect, and is now
4+
deprecated; likewise, the ``win`` attribute is deprecated.
5+
6+
``NavigationToolbar2Tk`` window
7+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8+
The *window* attribute to ``NavigationToolbar2GTK3`` is deprecated. Use
9+
``toolbar.master`` instead.
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``Axes3D.dist``
2+
~~~~~~~~~~~~~~~
3+
... has been privatized. Use the ``zoom`` keyword argument in
4+
`.Axes3D.set_box_aspect` instead.
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``AxisArtistHelper.delta1`` and ``AxisArtistHelper.delta2``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
... are deprecated with no replacement.
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
``axes_grid`` and ``axisartist`` removals
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
The following deprecated APIs have been removed:
5+
6+
- ``SubplotDivider.figbox``, ``SubplotDivider.update_params``,
7+
- ``SubplotDivider.get_geometry`` (use ``get_subplotspec`` instead),
8+
- ``change_geometry`` (use ``set_subplotspec`` instead),
9+
- ``ParasiteAxesBase.update_viewlim`` (use ``apply_aspect`` instead),
10+
- ``ParasiteAxesAuxTransBase`` (use ``ParasiteAxesBase`` instead),
11+
- ``parasite_axes_auxtrans_class_factory`` (use ``parasite_axes_class_factory``
12+
instead),
13+
- ``ParasiteAxesAuxTrans`` (use ``ParasiteAxes`` instead),
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
``AFM``, ``configfont_pattern`` and ``Type1Font`` deprecated
2+
------------------------------------------------------------
3+
4+
The modules ``matplotlib.AFM``, ``matplotlib.configfont_pattern``, and
5+
``matplotlib.Type1Font`` are considered internal and public access is
6+
deprecated.
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Modules ``tight_bbox`` and ``tight_layout`` deprecated
2+
------------------------------------------------------
3+
4+
The modules ``matplotlib.tight_bbox`` and ``matplotlib.tight_layout`` are
5+
considered internal and public access is deprecated.
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*cleared* parameter of ``get_renderer``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
This parameter, which only existed for agg-based backends, has been deprecated.
4+
Use ``renderer.clear()`` instead to explicitly clear the renderer buffer.
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
seaborn styles renamed
2+
~~~~~~~~~~~~~~~~~~~~~~
3+
Matplotlib currently ships many style files inspired from the seaborn
4+
library ("seaborn", "seaborn-bright", "seaborn-colorblind", etc.) but they
5+
have gone out of sync with the library itself since the release of seaborn
6+
0.9. To prevent confusion, the style files have been renamed "seaborn0.8",
7+
"seaborn0.8-bright", "seaborn0.8-colorblind", etc. Users are encouraged to
8+
directly use seaborn to access the up-to-date styles.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.