Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

DOC: Fix non-working code object references#28825

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:mainfromtimhoffm:doc-fix
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
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
11 changes: 11 additions & 0 deletionsdoc/api/axes_api.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,6 +28,17 @@ The Axes class

Axes

Attributes
----------

.. autosummary::
:toctree: _as_gen
:template: autosummary.rst
:nosignatures:

Axes.viewLim
Axes.dataLim

Plotting
========

Expand Down
4 changes: 0 additions & 4 deletionsdoc/missing-references.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -338,10 +338,6 @@
"Artist.stale_callback": [
"doc/users/explain/figure/interactive_guide.rst:323"
],
"Axes.dataLim": [
"doc/api/axes_api.rst:293:<autosummary>:1",
"lib/matplotlib/axes/_base.py:docstring of matplotlib.axes._base._AxesBase.update_datalim:2"
],
"AxesBase": [
"doc/api/axes_api.rst:448:<autosummary>:1",
"lib/matplotlib/axes/_base.py:docstring of matplotlib.axes._base._AxesBase.add_child_axes:2"
Expand Down
7 changes: 0 additions & 7 deletionslib/matplotlib/axes/_axes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -85,13 +85,6 @@ class Axes(_AxesBase):
methods instead; e.g. from `.pyplot` or `.Figure`:
`~.pyplot.subplots`, `~.pyplot.subplot_mosaic` or `.Figure.add_axes`.

Attributes
----------
dataLim : `.Bbox`
The bounding box enclosing all data displayed in the Axes.
viewLim : `.Bbox`
The view limits in data coordinates.

"""
### Labelling, legend and texts

Expand Down
6 changes: 5 additions & 1 deletionlib/matplotlib/axes/_base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -551,6 +551,9 @@ class _AxesBase(martist.Artist):

_subclass_uses_cla = False

dataLim: mtransforms.Bbox
"""The bounding `.Bbox` enclosing all data displayed in the Axes."""
Comment on lines +554 to +555
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We need a place to put the docstring. IMHO a class-level annotation is the best location (though we normally don't write types in the py files).


@property
def _axis_map(self):
"""A mapping of axis names, e.g. 'x', to `Axis` instances."""
Expand DownExpand Up@@ -849,6 +852,7 @@ def _unstale_viewLim(self):

@property
def viewLim(self):
"""The view limits as `.Bbox` in data coordinates."""
self._unstale_viewLim()
return self._viewLim

Expand DownExpand Up@@ -2265,7 +2269,7 @@ def add_artist(self, a):

def add_child_axes(self, ax):
"""
Add an `.AxesBase` to the Axes' children; return the child Axes.
Add an `.Axes` to the Axes' children; return the child Axes.

This is the lowlevel version. See `.axes.Axes.inset_axes`.
"""
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp