8000 ci: Preload existing test images from text-overhaul-figures branch by QuLogic · Pull Request #30231 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

ci: Preload existing test images from text-overhaul-figures branch #30231

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

Merged
merged 82 commits into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
f797268
Change first argument to add_axes from list to tuple
oscargus Aug 29, 2024
db4e67c
Change first argument to set_[xyz]lim to two arguments
oscargus Aug 29, 2024
edc8b20
Ensure tuples are passed to Axes.set([xyz]lim=...)
QuLogic Apr 16, 2025
31d92dc
Prepare to turn matplotlib.style into a plain module.
anntzer Jun 11, 2025
f5851da
Simplify RendererAgg::draw_markers buffers
QuLogic Jun 20, 2025
b154237
Clean up image files that may be symbolic links to files
ayshih Jun 19, 2025
8c75238
Clean up GIF image files from passing tests
ayshih Jun 19, 2025
5539d12
Merge pull request #30188 from ayshih/image_cleanup
scottshambaugh Jun 20, 2025
bebb263
Merge pull request #30191 from QuLogic/simplify-marker
scottshambaugh Jun 20, 2025
fc99473
DOC: Remove last userdemo example
QuLogic Jun 21, 2025
5a10e4d
Merge pull request #30197 from QuLogic/no-userdemo
timhoffm Jun 21, 2025
bbff84c
Replace facepair_t with std::optional
QuLogic Jun 20, 2025
e77c17f
Use collections.deque to store animation cache data.
anntzer Jun 22, 2025
9340190
Merge pull request #28764 from oscargus/exampletesttyping
QuLogic Jun 23, 2025
6e51bec
Support individual styling of major and minor grid through rcParams (…
konmenel Jun 24, 2025
0dcd06f
Merge pull request #30206 from anntzer/ad
jkseppan Jun 24, 2025
68c67c9
Merge pull request #30163 from anntzer/ms
jkseppan Jun 24, 2025
e3c7a64
Simplify dviFontInfo layout in backend pdf.
anntzer May 19, 2025
fed8c20
Merge pull request #30082 from anntzer/simple-dvifontinfo
QuLogic Jun 25, 2025
c7edce3
Implement Path.__deepcopy__ avoiding infinite recursion
jkseppan Jun 21, 2025
b20cf20
Compare arrays with assert_array_equal
jkseppan Jun 24, 2025
5c7c915
Fix TransformNode.__copy__
jkseppan Jun 21, 2025
4ab1ab5
Update deprecations.rst
ztw33 Jun 25, 2025
dd03655
Update removals.rst
ztw33 Jun 25, 2025
58b6a06
Merge pull request #30212 from ztw33/main
timhoffm Jun 25, 2025
3ea5b63
Fix label_outer in the presence of colorbars.
anntzer May 23, 2025
d05b43d
Merge pull request #30198 from jkseppan/path-deepcopy-via-metaclass
tacaswell Jun 26, 2025
257430e
ci: Enable wheel builds on Python 3.14
QuLogic Jun 20, 2025
b06d1f4
Clean up Qt socket notifier to avoid spurious interrupt handler calls
chrisjbillington Jun 26, 2025
c78c2f4
Refactoring: Removing axis parameter from scales (#29988)
vagnermcj Jun 27, 2025
ac863bc
BUG: Include python-including headers first
DWesl Jun 27, 2025
4b03f0c
Add explicit overloads for pyplot.{show,subplot} (#30202)
ZPyrolink Jun 27, 2025
e36bffb
Add explicit getter / setter overloads for pyplot.{xlim,ylim} (#30199)
ZPyrolink Jun 27, 2025
75c9b0a
Merge pull request #30220 from DWesl/python-h-first
timhoffm Jun 28, 2025
0b2fa3f
BUG: fix future incompatibility with Pillow 13
neutrinoceros Jun 28, 2025
7edd74a
Abstract base class for Normalize (#30178)
trygvrad Jun 28, 2025
99480b9
Fix polar inner patch boundary and spine location for log scale
rcomer Jun 28, 2025
f47f9a2
Fix polar inner patch boundary and spine location for log scale (#30223)
timhoffm Jun 30, 2025
d797ee5
Merge pull request #30098 from anntzer/locb
timhoffm Jun 30, 2025
6ede069
fixup
neutrinoceros Jun 30, 2025
9c184c1
Merge pull request #30221 from neutrinoceros/bug/pillow13-compat
timhoffm Jun 30, 2025
0e430b9
Add explicit signatures for pyplot.{polar,savefig,set_loglevel} (#30200)
ZPyrolink Jun 30, 2025
4c06e71
Bump github/codeql-action from 3.29.0 to 3.29.2 in the actions group
dependabot[bot] Jun 30, 2025
c805967
Merge pull request #30195 from QuLogic/py314
ianthomas23 Jul 1, 2025
413ea8f
Merge pull request #30209 from chrisjbillington/qt-interrupt-cleanup
anntzer Jul 1, 2025
b523581
Copy-edit the docstring of AuxTransformBox.
anntzer Jul 1, 2025
f6ae9e7
Merge pull request #30196 from QuLogic/optional-face
anntzer Jul 1, 2025
1295158
Add explicit `**options: Any` for `add_subplot` method to remove "par…
GameRoMan Jul 1, 2025
384fb6e
Merge pull request #30236 from anntzer/atb
timhoffm Jul 1, 2025
c8361f0
DOC: Recommend to use bare Figure instances for saving to file
timhoffm Jul 2, 2025
d1673ec
Merge pull request #30232 from matplotlib/dependabot/github_actions/a…
jkseppan Jul 2, 2025
919c7b9
adjust logic to allow inherritance
cvanelteren Jul 2, 2025
77f868c
chore: remove redundant words in comment
ianlv Jul 2, 2025
72aa3f7
Merge pull request #30246 from ianlv/main
timhoffm Jul 2, 2025
e22a6e8
Merge pull request #30245 from cvanelteren/allow-inherritance-rc
jklymak Jul 2, 2025
40516e8
Merge pull request #30244 from timhoffm/doc-save-image
jklymak Jul 2, 2025
70d5ad4
Fix FancyArrow rendering for zero-length arrows (#30243)
nrnavaneet Jul 3, 2025
a87684f
Upgrade to Visual Studio 2022 in appveyor.yml
jkseppan Jul 1, 2025
2899656
Merge pull request #30239 from jkseppan/vcvars
QuLogic Jul 3, 2025
d231a25
Don't expose private styles in style.available
QuLogic Jul 1, 2025
73d0317
Merge pull request #30237 from GameRoMan/patch-1
jkseppan Jul 4, 2025
6a01311
Time out in _get_executable_info
jkseppan Jul 3, 2025
ede1ebb
Merge pull request #30256 from jkseppan/timeout-get-executable-info
anntzer Jul 4, 2025
bf96be4
Fix linting in test notebooks
QuLogic Jul 4, 2025
ca3d239
Clean up unused ruff config
QuLogic Jul 4, 2025
18f93ee
Clean up mypy settings
QuLogic Jul 4, 2025
f4398bf
Clean up some simple linting exceptions
QuLogic Jul 4, 2025
7572823
Check that stem input is 1D
QuLogic Jul 1, 2025
e78735b
Tweak docstrings of get_window_extent/get_tightbbox.
anntzer Jul 4, 2025
cfc366b
Merge pull request #30262 from anntzer/gwegtb
timhoffm Jul 5, 2025
faa3670
Merge pull request #30258 from QuLogic/ruff-update
timhoffm Jul 5, 2025
9c3f73b
DOC: fix artist see also sections
rcomer Jul 5, 2025
90db4c1
Merge pull request #30266 from rcomer/artist-seealso
jklymak Jul 6, 2025
947590d
Merge pull request #30233 from QuLogic/stem-1d
dstansby Jul 6, 2025
db6cf15
Fix figure legend when drawing stackplots
dstansby Jun 18, 2025
b370e30
Add smoke test
dstansby Jul 6, 2025
99b4ee3
Merge pull request #30186 from dstansby/fig-legend-error
timhoffm Jul 7, 2025
b6777b1
Merge pull request #30235 from QuLogic/private-style
timhoffm Jul 7, 2025
f31ba35
Use old stride_windows implementation on 32-bit builds
QuLogic Aug 22, 2022
4c345b4
Merge pull request #29115 from QuLogic/old-strides
QuLogic Jul 7, 2025
a7fd524
Merge branch 'main' into text-overhaul
QuLogic Jul 7, 2025
389373e
ci: Preload existing test images from text-overhaul-figures branch
QuLogic Jun 30, 2025
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
22 changes: 21 additions & 1 deletion .appveyor.yml
10000
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ skip_commits:

clone_depth: 50

image: Visual Studio 2019
image: Visual Studio 2022

environment:

Expand Down Expand Up @@ -60,6 +60,26 @@ install:
- micromamba env create -f environment.yml python=%PYTHON_VERSION% pywin32
- micromamba activate mpl-dev

before_test:
- git config --global user.name 'Matplotlib'
- git config --global user.email 'nobody@matplotlib.org'
- git fetch https://github.com/QuLogic/matplotlib.git text-overhaul-figures:text-overhaul-figures
- git merge --no-commit text-overhaul-figures || true
# If there are any conflicts in baseline images, then pick "ours",
# which should be the updated images in the PR.
- ps: |
$conflicts = git diff --name-only --diff-filter=U `
lib/matplotlib/tests/baseline_images `
lib/mpl_toolkits/*/tests/baseline_images
if ($conflicts) {
git checkout --ours -- $conflicts
git add -- $conflicts
}
git status
# If committing fails, there were conflicts other than the baseline images,
# which should not be allowed to happen, and should fail the build.
- git commit -m "Preload test images from branch text-overhaul-figures"

test_script:
# Now build the thing..
- set LINK=/LIBPATH:%cd%\lib
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,27 @@ jobs:
name: cibw-sdist
path: dist/

- name: Build wheels for CPython 3.14
uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "cp314-* cp314t-*"
CIBW_ENABLE: "cpython-freethreading cpython-prerelease"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_BEFORE_TEST: >-
python -m pip install
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
--upgrade --pre --only-binary=:all: contourpy numpy pillow

- name: Build wheels for CPython 3.13
uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "cp313-* cp313t-*"
CIBW_ENABLE: cpython-freethreading
# No free-threading wheels available for aarch64 on Pillow.
CIBW_TEST_SKIP: "cp313t-manylinux_aarch64"
CIBW_ARCHS: ${{ matrix.cibw_archs }}

- name: Build wheels for CPython 3.12
Expand All @@ -167,7 +179,6 @@ jobs:
CIBW_BUILD: "cp311-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}


- name: Build wheels for PyPy
uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
with:
Expand All @@ -176,8 +187,6 @@ jobs:
CIBW_BUILD: "pp311-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_ENABLE: pypy
# No wheels available for Pillow with pp311 yet.
CIBW_TEST_SKIP: "pp311*"
if: matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest'

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
with:
languages: ${{ matrix.language }}

Expand All @@ -43,4 +43,4 @@ jobs:
pip install --user -v .

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
25 changes: 23 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Preload test images
run: |
git config --global user.name 'Matplotlib'
git config --global user.email 'nobody@matplotlib.org'
git fetch https://github.com/QuLogic/matplotlib.git text-overhaul-figures:text-overhaul-figures
git merge --no-commit text-overhaul-figures || true
# If there are any conflicts in baseline images, then pick "ours",
# which should be the updated images in the PR.
conflicts=$(git diff --name-only --diff-filter=U \
lib/matplotlib/tests/baseline_images \
lib/mpl_toolkits/*/tests/baseline_images)
if [ -n "${conflicts}" ]; then
git checkout --ours -- "${conflicts}"
git add -- "${conflicts}"
fi
# If committing fails, there were conflicts other than the baseline images,
# which should not be allowed to happen, and should fail the build.
git commit -m 'Preload test images from branch text-overhaul-figures'

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
Expand Down Expand Up @@ -346,13 +365,15 @@ jobs:
run: |
function remove_files() {
local extension=$1
find ./result_images -type f -name "*-expected*.$extension" | while read file; do
find ./result_images -name "*-expected*.$extension" | while read file; do
if [[ $file == *"-expected_pdf"* ]]; then
base=${file%-expected_pdf.$extension}_pdf
elif [[ $file == *"-expected_eps"* ]]; then
base=${file%-expected_eps.$extension}_eps
elif [[ $file == *"-expected_svg"* ]]; then
base=${file%-expected_svg.$extension}_svg
elif [[ $file == *"-expected_gif"* ]]; then
base=${file%-expected_gif.$extension}_gif
else
base=${file%-expected.$extension}
fi
Expand All @@ -369,7 +390,7 @@ jobs:
done
}

remove_files "png"; remove_files "svg"; remove_files "pdf"; remove_files "eps";
remove_files "png"; remove_files "svg"; remove_files "pdf"; remove_files "eps"; remove_files "gif";

if [ "$(find ./result_images -mindepth 1 -type d)" ]; then
find ./result_images/* -type d -empty -delete
Expand Down
19 changes: 19 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,25 @@ stages:
architecture: 'x64'
displayName: 'Use Python $(python.version)'

- bash: |
git config --global user.name 'Matplotlib'
git config --global user.email 'nobody@matplotlib.org'
git fetch https://github.com/QuLogic/matplotlib.git text-overhaul-figures:text-overhaul-figures
git merge --no-commit text-overhaul-figures || true
# If there are any conflicts in baseline images, then pick "ours",
# which should be the updated images in the PR.
conflicts=$(git diff --name-only --diff-filter=U \
lib/matplotlib/tests/baseline_images \
lib/mpl_toolkits/*/tests/baseline_images)
if [ -n "${conflicts}" ]; then
git checkout --ours -- "${conflicts}"
git add -- "${conflicts}"
fi
# If committing fails, there were conflicts other than the baseline images,
# which should not be allowed to happen, and should fail the build.
git commit -m 'Preload test images from branch text-overhaul-figures'
displayName: Preload test images

- bash: |
choco install ninja
displayName: 'Install dependencies'
Expand Down
1 change: 1 addition & 0 deletions doc/api/colors_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Color norms
:toctree: _as_gen/
:template: autosummary.rst

Norm
Normalize
NoNorm
AsinhNorm
Expand Down
9 changes: 9 additions & 0 deletions doc/api/next_api_changes/deprecations/30163-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
``matplotlib.style.core``
~~~~~~~~~~~~~~~~~~~~~~~~~
The ``matplotlib.style.core`` module is deprecated. All APIs intended for
public use are now available in `matplotlib.style` directly (including
``USER_LIBRARY_PATHS``, which was previously not reexported).

The following APIs of ``matplotlib.style.core`` have been deprecated with no
replacement: ``BASE_LIBRARY_PATH``, ``STYLE_EXTENSION``, ``STYLE_BLACKLIST``,
``update_user_library``, ``read_style_directory``, ``update_nested_dict``.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Miscellaneous deprecations
- The *format* parameter of ``dviread.find_tex_file`` is deprecated (with no
replacement).
- ``FancyArrowPatch.get_path_in_displaycoord`` and
``ConnectionPath.get_path_in_displaycoord`` are deprecated. The path in
``ConnectionPatch.get_path_in_displaycoord`` are deprecated. The path in
display coordinates can still be obtained, as for other patches, using
``patch.get_transform().transform_path(patch.get_path())``.
- The ``font_manager.win32InstalledFonts`` and
Expand Down
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_3.7.0/removals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Miscellaneous removals
- The *format* parameter of ``dviread.find_tex_file`` is removed (with no
replacement).
- ``FancyArrowPatch.get_path_in_displaycoord`` and
``ConnectionPath.get_path_in_displaycoord`` are removed. The path in
``ConnectionPatch.get_path_in_displaycoord`` are removed. The path in
display coordinates can still be obtained, as for other patches, using
``patch.get_transform().transform_path(patch.get_path())``.
- The ``font_manager.win32InstalledFonts`` and
Expand Down
2 changes: 1 addition & 1 deletion doc/devel/tag_guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Proposing new tags
1. Review existing tag list, looking out for similar entries (i.e. ``axes`` and ``axis``).
2. If a relevant tag or subcategory does not yet exist, propose it. Each tag is two
parts: ``subcategory: tag``. Tags should be one or two words.
3. New tags should be be added when they are relevant to existing gallery entries too.
3. New tags should be added when they are relevant to existing gallery entries too.
Avoid tags that will link to only a single gallery entry.
4. Tags can recreate other forms of organization.

Expand Down
4 changes: 2 additions & 2 deletions doc/project/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Matplotlib logo (2008 - 2015).


def add_math_background():
ax = fig.add_axes([0., 0., 1., 1.])
ax = fig.add_axes((0., 0., 1., 1.))

text = []
text.append(
Expand Down Expand Up @@ -187,7 +187,7 @@ Matplotlib logo (2008 - 2015).


def add_polar_bar():
ax = fig.add_axes([0.025, 0.075, 0.2, 0.85], projection='polar')
ax = fig.add_axes((0.025, 0.075, 0.2, 0.85), projection='polar')

ax.patch.set_alpha(axalpha)
ax.set_axisbelow(True)
Expand Down
19 changes: 17 additions & 2 deletions doc/users/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,23 @@ locators as desired because the two axes are independent.
Generate images without having a window appear
----------------------------------------------

Simply do not call `~matplotlib.pyplot.show`, and directly save the figure to
the desired format::
The recommended approach since matplotlib 3.1 is to explicitly create a Figure
instance::

from matplotlib.figure import Figure
fig = Figure()
ax = fig.subplots()
ax.plot([1, 2, 3])
fig.savefig('myfig.png')

This prevents any interaction with GUI frameworks and the window manager.

It's alternatively still possible to use the pyplot interface. Instead of
calling `matplotlib.pyplot.show`, call `matplotlib.pyplot.savefig`.

Additionally, you must ensure to close the figure after saving it. Not
closing the figure is a memory leak, because pyplot keeps references
to all not-yet-shown figures::

import matplotlib.pyplot as plt
plt.plot([1, 2, 3])
Expand Down
33 changes: 33 additions & 0 deletions doc/users/next_whats_new/new_rcparams_grid_options.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Separate styling options for major/minor grid line in rcParams
--------------------------------------------------------------

Using :rc:`grid.major.*` or :rc:`grid.minor.*` will overwrite the value in
:rc:`grid.*` for the major and minor gridlines, respectively.

.. plot::
:include-source: true
:alt: Modifying the gridlines using the new options `rcParams`

import matplotlib as mpl
import matplotlib.pyplot as plt


# Set visibility for major and minor gridlines
mpl.rcParams["axes.grid"] = True
mpl.rcParams["ytick.minor.visible"] = True
mpl.rcParams["xtick.minor.visible"] = True
mpl.rcParams["axes.grid.which"] = "both"

# Using old values to set both major and minor properties
mpl.rcParams["grid.color"] = "red"
mpl.rcParams["grid.linewidth"] = 1

# Overwrite some values for major and minor separately
mpl.rcParams["grid.major.color"] = "black"
mpl.rcParams["grid.major.linewidth"] = 2
mpl.rcParams["grid.minor.linestyle"] = ":"
mpl.rcParams["grid.minor.alpha"] = 0.6

plt.plot([0, 1], [0, 1])

plt.show()
2 changes: 1 addition & 1 deletion doc/users/prev_whats_new/dflt_style_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ a cleaner separation between subplots.

ax = fig.add_subplot(2, 2, j)
ax.hist(np.random.beta(0.5, 0.5, 10000), 25, density=True)
ax.set_xlim([0, 1])
ax.set_xlim(0, 1)
ax.set_title(title)

ax = fig.add_subplot(2, 2, j + 2)
Expand Down
14 changes: 7 additions & 7 deletions doc/users/prev_whats_new/whats_new_3.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ of the text inside the Axes of the `.TextBox` widget.

fig = plt.figure(figsize=(4, 3))
for i, alignment in enumerate(['left', 'center', 'right']):
box_input = fig.add_axes([0.1, 0.7 - i*0.3, 0.8, 0.2])
text_box = TextBox(ax=box_input, initial=f'{alignment} alignment',
label='', textalignment=alignment)
box_input = fig.add_axes((0.1, 0.7 - i*0.3, 0.8, 0.2))
text_box = TextBox(ax=box_input, initial=f'{alignment} alignment',
label='', textalignment=alignment)

Simplifying the font setting for usetex mode
--------------------------------------------
Expand Down Expand Up @@ -375,9 +375,9 @@ attribute.
points = ax.scatter((3, 3), (1, 3), (1, 3), c='red', zorder=10,
label='zorder=10')

ax.set_xlim((0, 5))
ax.set_ylim((0, 5))
ax.set_zlim((0, 2.5))
ax.set_xlim(0, 5)
ax.set_ylim(0, 5)
ax.set_zlim(0, 2.5)

plane = mpatches.Patch(facecolor='white', edgecolor='black',
label='zorder=1')
Expand Down Expand Up @@ -485,7 +485,7 @@ new styling parameters for the added handles.
ax = ax_old
valmin = 0
valinit = 0.5
ax.set_xlim([0, 1])
ax.set_xlim(0, 1)
ax_old.axvspan(valmin, valinit, 0, 1)
ax.axvline(valinit, 0, 1, color="r", lw=1)
ax.set_xticks([])
Expand Down
4 changes: 2 additions & 2 deletions doc/users/prev_whats_new/whats_new_3.8.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ The following delimiter names have been supported earlier, but can now be sized
* ``\leftparen`` and ``\rightparen``

There are really no obvious advantages in using these.
Instead, they are are added for completeness.
Instead, they are added for completeness.

``mathtext`` documentation improvements
---------------------------------------
Expand Down Expand Up @@ -513,7 +513,7 @@ Plot Directive now can make responsive images with "srcset"

The plot sphinx directive (``matplotlib.sphinxext.plot_directive``, invoked in
rst as ``.. plot::``) can be configured to automatically make higher res
figures and add these to the the built html docs. In ``conf.py``::
figures and add these to the built html docs. In ``conf.py``::

extensions = [
...
Expand Down
2 changes: 1 addition & 1 deletion galleries/examples/animation/rain.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# Create new Figure and an Axes which fills it.
fig = plt.figure(figsize=(7, 7))
ax = fig.add_axes([0, 0, 1, 1], frameon=False)
ax = fig.add_axes((0, 0, 1, 1), frameon=False)
ax.set_xlim(0, 1), ax.set_xticks([])
ax.set_ylim(0, 1), ax.set_yticks([])

Expand Down
2 changes: 1 addition & 1 deletion galleries/examples/animation/simple_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import matplotlib.animation as animation

fig, ax = plt.subplots()
ax.set_xlim([0, 10])
ax.set_xlim(0, 10)

scat = ax.scatter(1, 0)
x = np.linspace(0, 10)
Expand Down
Loading
Loading
0