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

Skip to content

Backport PR #28403 on branch v3.9.x (FIX: Autoscale support in add_collection3d for Line3DCollection and Poly3DCollection) #28445

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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
ac17d9f
Backport PR #28231: DOC: we do not need the blit call in on_draw
timhoffm May 16, 2024
6558e56
Backport PR #28233: CI: Fix font install on macOS/Homebrew
ksunden May 16, 2024
fc1194e
Merge pull request #28236 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic May 16, 2024
f4f17e6
Merge pull request #28237 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic May 16, 2024
c35a0e5
Backport PR #28219: Bump the actions group with 2 updates
QuLogic May 17, 2024
0281634
Merge pull request #28241 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic May 17, 2024
9f70709
Backport PR #28243: DOC: Add more 3D plot types
timhoffm May 17, 2024
660ea35
Merge pull request #28246 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 17, 2024
63351f2
Backport PR #28230: Add extra imports to improve typing
timhoffm May 17, 2024
c0ed7a5
Merge pull request #28247 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 17, 2024
fefe7d2
Backport PR #28252: DOC: Flip the imshow plot types example to match …
story645 May 17, 2024
66a2695
Merge pull request #28253 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 17, 2024
82d14c8
Backport PR #28254: [DOC] plot type heading consistency
story645 May 17, 2024
b3cc6bf
Merge pull request #28255 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic May 17, 2024
f3b34c1
Backport PR #28257: Clean up some Meson-related leftovers
ksunden May 20, 2024
cb4f0d6
Merge pull request #28266 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 21, 2024
8cb17f8
Backport PR #28269: Handle GetForegroundWindow() returning NULL.
QuLogic May 21, 2024
c79514a
Merge pull request #28270 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 21, 2024
425b4d3
Backport PR #28274: ci: Remove deprecated codeql option
oscargus May 22, 2024
7bd803f
Backport PR #28272: BLD: Move macos builders from 11 to 12
timhoffm May 22, 2024
76cc951
Merge pull request #28277 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic May 22, 2024
4739e48
Merge pull request #28278 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 22, 2024
bb1dcc3
Backport PR #28280: DOC: Add an example for 2D images in 3D plots
timhoffm May 23, 2024
182238c
Merge pull request #28283 from meeseeksmachine/auto-backport-of-pr-28…
rcomer May 23, 2024
042e1bb
Backport PR #28261: Correct roll angle units, issue #28256
oscargus May 24, 2024
357d3ba
Merge pull request #28294 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 25, 2024
a4a0a95
Backport PR #28297: Solved #28296 Added missing comma
timhoffm May 25, 2024
c3e897d
Merge pull request #28299 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm May 25, 2024
3a55c47
Backport PR #28303: Removed drawedges repeated definition from functi…
rcomer May 26, 2024
b548fca
Merge pull request #28305 from meeseeksmachine/auto-backport-of-pr-28…
rcomer May 27, 2024
7462f5e
Backport PR #28273: CI: Add GitHub artifact attestations to package d…
QuLogic May 29, 2024
5e0b83f
Merge pull request #28318 from meeseeksmachine/auto-backport-of-pr-28…
ksunden May 29, 2024
ccc61cb
Backport PR #27001: [TYP] Add overload of `pyplot.subplots`
ksunden May 30, 2024
994be67
Merge pull request #28320 from meeseeksmachine/auto-backport-of-pr-27…
QuLogic May 30, 2024
ecdbc27
Backport PR #28041: [BUG]: Shift box_aspect according to vertical_axis
Illviljan Jun 2, 2024
5fd4af7
Merge pull request #28326 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 2, 2024
6234456
Backport PR #28292: Resolve MaxNLocator IndexError when no large steps
tacaswell Jun 2, 2024
0776da6
Merge pull request #28327 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 2, 2024
a251d42
Backport PR #28329: DOC: Add example for 3D intersecting planes
timhoffm Jun 3, 2024
91ff901
Merge pull request #28331 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 3, 2024
75ac1bd
Backport PR #28332: Call IPython.enable_gui when install repl display…
tacaswell Jun 3, 2024
de85de2
Merge pull request #28334 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic Jun 3, 2024
0fae228
Backport PR #28336: DOC: Add version warning banner for docs versions…
story645 Jun 3, 2024
fd834d8
Merge pull request #28339 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 4, 2024
7278380
Backport PR #28307: DOC: New color line by value example
eytanadler Jun 5, 2024
19fe788
Merge pull request #28351 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 5, 2024
60197c5
Backport PR #28337: Bump the actions group across 1 directory with 3 …
greglucas Jun 8, 2024
394b553
Backport PR #28359: Document that axes unsharing is impossible.
scottshambaugh Jun 10, 2024
adf0124
Merge pull request #28368 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 11, 2024
35f38de
Backport PR #28377: DOC: Clarify scope of wrap.
ksunden Jun 12, 2024
a6c44d8
Merge pull request #28385 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 13, 2024
1099476
Backport PR #28380: Remove outdated docstring section in RendererBase…
timhoffm Jun 13, 2024
ee5ba28
Merge pull request #28389 from meeseeksmachine/auto-backport-of-pr-28…
timhoffm Jun 13, 2024
0ffc8c1
Backport PR #28388: Allow duplicate (name, value) entry points for ba…
QuLogic Jun 13, 2024
0e37092
Merge pull request #28362 from meeseeksmachine/auto-backport-of-pr-28…
ksunden Jun 13, 2024
5624621
Merge pull request #28392 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic Jun 14, 2024
da5c20f
Backport PR #28413: CI: update action that got moved org
rcomer Jun 18, 2024
7d35221
Merge pull request #28415 from meeseeksmachine/auto-backport-of-pr-28…
rcomer Jun 18, 2024
2c59ec6
Backport PR #28414: Clean up obsolete widget code
ksunden Jun 19, 2024
40f7f09
Merge pull request #28419 from meeseeksmachine/auto-backport-of-pr-28…
QuLogic Jun 19, 2024
f8f8206
Backport PR #28401: FIX: Fix text wrapping
timhoffm Jun 19, 2024
f8ff4e1
Backport PR #28423: Update return type for Axes.axhspan and Axes.axvspan
rcomer Jun 19, 2024
8842d5c
Merge pull request #28424 from meeseeksmachine/auto-backport-of-pr-28…
rcomer Jun 19, 2024
743fb16
Merge pull request #28422 from meeseeksmachine/auto-backport-of-pr-28…
rcomer Jun 19, 2024
8bf8cf5
Backport PR #28425: Fix Circle yaml line length
ksunden Jun 19, 2024
f8d15bd
Backport PR #28427: Fix circleci yaml
rcomer Jun 20, 2024
af4bebb
Merge pull request #28426 from meeseeksmachine/auto-backport-of-pr-28…
ksunden Jun 21, 2024
e46044d
Backport PR #28441: MNT: Update basic units example to work with nump…
rcomer Jun 24, 2024
f30470c
Merge pull request #28443 from meeseeksmachine/auto-backport-of-pr-28…
rcomer Jun 24, 2024
b0dba39
Backport PR #28436: Fix `is_color_like` for 2-tuple of strings and fi…
meeseeksmachine Jun 24, 2024
c747ac4
Backport PR #28403: FIX: Autoscale support in add_collection3d for Li…
scottshambaugh Jun 24, 2024
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
31 changes: 14 additions & 17 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
CIBW_SKIP: "*-musllinux_aarch64"
CIBW_TEST_COMMAND: >-
python {package}/ci/check_version_number.py
MACOSX_DEPLOYMENT_TARGET: "10.12"
MPL_DISABLE_FH4: "yes"
strategy:
matrix:
Expand All @@ -115,16 +116,10 @@ jobs:
cibw_archs: "aarch64"
- os: windows-latest
cibw_archs: "auto64"
- os: macos-11
- os: macos-12
cibw_archs: "x86_64"
# NOTE: macos_target can be moved back into global environment after
# meson-python 0.16.0 is released.
macos_target: "10.12"
- os: macos-14
cibw_archs: "arm64"
# NOTE: macos_target can be moved back into global environment after
# meson-python 0.16.0 is released.
macos_target: "11.0"

steps:
- name: Set up QEMU
Expand All @@ -140,49 +135,44 @@ jobs:
path: dist/

- name: Build wheels for CPython 3.12
uses: pypa/cibuildwheel@8d945475ac4b1aac4ae08b2fd27db9917158b6ce # v2.17.0
uses: pypa/cibuildwheel@ba8be0d98853f5744f24e7f902c8adef7ae2e7f3 # v2.18.1
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "cp312-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
MACOSX_DEPLOYMENT_TARGET: "${{ matrix.macos_target }}"

- name: Build wheels for CPython 3.11
uses: pypa/cibuildwheel@8d945475ac4b1aac4ae08b2fd27db9917158b6ce # v2.17.0
uses: pypa/cibuildwheel@ba8be0d98853f5744f24e7f902c8adef7ae2e7f3 # v2.18.1
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "cp311-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
MACOSX_DEPLOYMENT_TARGET: "${{ matrix.macos_target }}"

- name: Build wheels for CPython 3.10
uses: pypa/cibuildwheel@8d945475ac4b1aac4ae08b2fd27db9917158b6ce # v2.17.0
uses: pypa/cibuildwheel@ba8be0d98853f5744f24e7f902c8adef7ae2e7f3 # v2.18.1
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "cp310-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
MACOSX_DEPLOYMENT_TARGET: "${{ matrix.macos_target }}"

- name: Build wheels for CPython 3.9
uses: pypa/cibuildwheel@8d945475ac4b1aac4ae08b2fd27db9917158b6ce # v2.17.0
uses: pypa/cibuildwheel@ba8be0d98853f5744f24e7f902c8adef7ae2e7f3 # v2.18.1
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "cp39-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
MACOSX_DEPLOYMENT_TARGET: "${{ matrix.macos_target }}"

- name: Build wheels for PyPy
uses: pypa/cibuildwheel@8d945475ac4b1aac4ae08b2fd27db9917158b6ce # v2.17.0
uses: pypa/cibuildwheel@ba8be0d98853f5744f24e7f902c8adef7ae2e7f3 # v2.18.1
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: "pp39-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
MACOSX_DEPLOYMENT_TARGET: "${{ matrix.macos_target }}"
if: matrix.cibw_archs != 'aarch64'

- uses: actions/upload-artifact@v4
Expand All @@ -199,6 +189,8 @@ jobs:
environment: release
permissions:
id-token: write
attestations: write
contents: read
steps:
- name: Download packages
uses: actions/download-artifact@v4
Expand All @@ -210,5 +202,10 @@ jobs:
- name: Print out packages
run: ls dist

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@49df96e17e918a15956db358890b08e61c704919 # v1.2.0
with:
subject-path: dist/matplotlib-*

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
3 changes: 2 additions & 1 deletion .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
uses: larsoner/circleci-artifacts-redirector-action@master
uses:
scientific-python/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # v1.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLECI_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false

- name: Build compiled code
if: matrix.language == 'c-cpp'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conflictcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check if PRs have merge conflicts
uses: eps1lon/actions-label-merge-conflict@e62d7a53ff8be8b97684bffb6cfbbf3fc1115e2e # v3.0.0
uses: eps1lon/actions-label-merge-conflict@1b1b1fcde06a9b3d089f3464c96417961dde1168 # v3.0.2
with:
dirtyLabel: "status: needs rebase"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ jobs:
fi
;;
macOS)
brew install ccache
brew tap homebrew/cask-fonts
brew install font-noto-sans-cjk ghostscript gobject-introspection gtk4 ninja
brew install --cask inkscape
brew update
brew install ccache ghostscript gobject-introspection gtk4 ninja
brew install --cask font-noto-sans-cjk inkscape
;;
esac

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ repos:
- id: yamllint
args: ["--strict", "--config-file=.yamllint.yml"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.1
rev: 0.28.4
hooks:
# TODO: Re-enable this when https://github.com/microsoft/azure-pipelines-vscode/issues/567 is fixed.
# - id: check-azure-pipelines
Expand Down
2 changes: 1 addition & 1 deletion .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends: default

rules:
line-length:
max: 111
max: 120
allow-non-breakable-words: true
truthy:
check-keys: false
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ stages:
texlive-xetex
;;
Darwin)
brew update
brew install --cask xquartz
brew install ccache ffmpeg imagemagick mplayer ninja pkg-config
brew tap homebrew/cask-fonts
brew install font-noto-sans-cjk-sc
brew install --cask font-noto-sans-cjk-sc
;;
Windows_NT)
choco install ninja
Expand Down
3 changes: 2 additions & 1 deletion doc/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{
"name": "3.9 (stable)",
"version": "stable",
"url": "https://matplotlib.org/stable/"
"url": "https://matplotlib.org/stable/",
"preferred": true
},
{
"name": "3.10 (dev)",
Expand Down
6 changes: 3 additions & 3 deletions doc/api/prev_api_changes/api_changes_3.5.0/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ In order to avoid conflicting with the use of :file:`setup.cfg` by
``setup.cfg`` to ``mplsetup.cfg``. The :file:`setup.cfg.template` has been
correspondingly been renamed to :file:`mplsetup.cfg.template`.

Note that the path to this configuration file can still be set via the
:envvar:`MPLSETUPCFG` environment variable, which allows one to keep using the
same file before and after this change.
Note that the path to this configuration file can still be set via the ``MPLSETUPCFG``
environment variable, which allows one to keep using the same file before and after this
change.
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ def js_tag_with_cache_busting(js):
# this special value indicates the use of the unreleased banner. If we need
# an actual announcement, then just place the text here as usual.
"announcement": "unreleased" if not is_release_build else "",
"show_version_warning_banner": True,
}
include_analytics = is_release_build
if include_analytics:
Expand Down
7 changes: 0 additions & 7 deletions doc/install/environment_variables_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ Environment variables
used to find a base directory in which the :file:`matplotlib` subdirectory is
created.

.. envvar:: MPLSETUPCFG

This optional variable can be set to the full path of a :file:`mplsetup.cfg`
configuration file used to customize the Matplotlib build. By default, a
:file:`mplsetup.cfg` file in the root of the Matplotlib source tree will be
read. Supported build options are listed in :file:`mplsetup.cfg.template`.

.. envvar:: PATH

The list of directories searched to find executable programs.
Expand Down
18 changes: 8 additions & 10 deletions doc/install/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,20 @@ Before trying to install Matplotlib, please install the :ref:`dependencies`.
To build from a tarball, download the latest *tar.gz* release
file from `the PyPI files page <https://pypi.org/project/matplotlib/>`_.

We provide a `mplsetup.cfg`_ file which you can use to customize the build
process. For example, which default backend to use, whether some of the
optional libraries that Matplotlib ships with are installed, and so on. This
file will be particularly useful to those packaging Matplotlib.

.. _mplsetup.cfg: https://raw.githubusercontent.com/matplotlib/matplotlib/main/mplsetup.cfg.template

If you are building your own Matplotlib wheels (or sdists) on Windows, note
that any DLLs that you copy into the source tree will be packaged too.


Configure build and behavior defaults
=====================================

Aspects of the build and install process and some behaviorial defaults of the
library can be configured via:
We provide a `meson.options`_ file containing options with which you can use to
customize the build process. For example, which default backend to use, whether some of
the optional libraries that Matplotlib ships with are installed, and so on. These
options will be particularly useful to those packaging Matplotlib.

.. _meson.options: https://github.com/matplotlib/matplotlib/blob/main/meson.options

Aspects of some behaviorial defaults of the library can be configured via:

.. toctree::
:maxdepth: 2
Expand Down
1 change: 0 additions & 1 deletion galleries/examples/event_handling/path_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def on_draw(self, event):
self.background = self.canvas.copy_from_bbox(self.ax.bbox)
self.ax.draw_artist(self.pathpatch)
self.ax.draw_artist(self.line)
self.canvas.blit(self.ax.bbox)

def on_button_press(self, event):
"""Callback for mouse button presses."""
Expand Down
Loading
Loading