| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 56153b9 commit cb55075
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,17 @@ The Axes class | |||
| 28 | 28 | ||
| 29 | 29 | Axes | |
| 30 | 30 | ||
| 31 | + Attributes | ||
| 32 | + ---------- | ||
| 33 | + | ||
| 34 | + .. autosummary:: | ||
| 35 | + :toctree: _as_gen | ||
| 36 | + :template: autosummary.rst | ||
| 37 | + :nosignatures: | ||
| 38 | + | ||
| 39 | + Axes.viewLim | ||
| 40 | + Axes.dataLim | ||
| 41 | + | ||
| 31 | 42 | Plotting | |
| 32 | 43 | ======== | |
| 33 | 44 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,13 +85,6 @@ class Axes(_AxesBase): | |||
| 85 | 85 | methods instead; e.g. from `.pyplot` or `.Figure`: | |
| 86 | 86 | `~.pyplot.subplots`, `~.pyplot.subplot_mosaic` or `.Figure.add_axes`. | |
| 87 | 87 | ||
| 88 | - Attributes | ||
| 89 | - ---------- | ||
| 90 | - dataLim : `.Bbox` | ||
| 91 | - The bounding box enclosing all data displayed in the Axes. | ||
| 92 | - viewLim : `.Bbox` | ||
| 93 | - The view limits in data coordinates. | ||
| 94 | - | ||
| 95 | 88 | """ | |
| 96 | 89 | ### Labelling, legend and texts | |
| 97 | 90 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -551,6 +551,9 @@ class _AxesBase(martist.Artist): | |||
| 551 | 551 | ||
| 552 | 552 | _subclass_uses_cla = False | |
| 553 | 553 | ||
| 554 | + dataLim: mtransforms.Bbox | ||
| 555 | + """The bounding `.Bbox` enclosing all data displayed in the Axes.""" | ||
| 556 | + | ||
| 554 | 557 | @property | |
| 555 | 558 | def _axis_map(self): | |
| 556 | 559 | """A mapping of axis names, e.g. 'x', to `Axis` instances.""" | |
@@ -849,6 +852,7 @@ def _unstale_viewLim(self): | |||
| 849 | 852 | ||
| 850 | 853 | @property | |
| 851 | 854 | def viewLim(self): | |
| 855 | + """The view limits as `.Bbox` in data coordinates.""" | ||
| 852 | 856 | self._unstale_viewLim() | |
| 853 | 857 | return self._viewLim | |
| 854 | 858 | ||
@@ -2265,7 +2269,7 @@ def add_artist(self, a): | |||
| 2265 | 2269 | ||
| 2266 | 2270 | def add_child_axes(self, ax): | |
| 2267 | 2271 | """ | |
| 2268 | - Add an `.AxesBase` to the Axes' children; return the child Axes. | ||
| 2272 | + Add an `.Axes` to the Axes' children; return the child Axes. | ||
| 2269 | 2273 | ||
| 2270 | 2274 | This is the lowlevel version. See `.axes.Axes.inset_axes`. | |
| 2271 | 2275 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments