MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _AxesBase

Class _AxesBase

lib/matplotlib/axes/_base.py:558–5056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556
557@_api.define_aliases({"facecolor": ["fc"]})
558class _AxesBase(martist.Artist):
559 name = "rectilinear"
560
561 # axis names are the prefixes for the attributes that contain the
562 # respective axis; e.g. 'x' <-> self.xaxis, containing an XAxis.
563 # Note that PolarAxes uses these attributes as well, so that we have
564 # 'x' <-> self.xaxis, containing a ThetaAxis. In particular we do not
565 # have 'theta' in _axis_names.
566 # In practice, this is ('x', 'y') for all 2D Axes and ('x', 'y', 'z')
567 # for Axes3D.
568 _axis_names = ("x", "y")
569 _shared_axes = {name: cbook.Grouper() for name in _axis_names}
570 _twinned_axes = cbook.Grouper()
571
572 _subclass_uses_cla = False
573
574 dataLim: mtransforms.Bbox
575 """The bounding `.Bbox` enclosing all data displayed in the Axes."""
576
577 spines: mspines.Spines
578 """
579 The `.Spines` container for the Axes&#x27; spines, i.e. the lines denoting the
580 data area boundaries.
581 """
582
583 xaxis: maxis.XAxis
584 """
585 The `.XAxis` instance.
586
587 Common axis-related configuration can be achieved through high-level wrapper
588 methods on Axes; e.g. `ax.set_xticks <.Axes.set_xticks>` is a shortcut for
589 `ax.xaxis.set_ticks <.Axis.set_ticks>`. The *xaxis* attribute gives direct
590 direct access to the underlying `~.axis.Axis` if you need more control.
591
592 See also
593
594 - :ref:`Axis wrapper methods on Axes <axes-api-axis>`
595 - :doc:`Axis API </api/axis_api>`
596 """
597
598 yaxis: maxis.YAxis
599 """
600 The `.YAxis` instance.
601
602 Common axis-related configuration can be achieved through high-level wrapper
603 methods on Axes; e.g. `ax.set_yticks <.Axes.set_yticks>` is a shortcut for
604 `ax.yaxis.set_ticks <.Axis.set_ticks>`. The *yaxis* attribute gives direct
605 access to the underlying `~.axis.Axis` if you need more control.
606
607 See also
608
609 - :ref:`Axis wrapper methods on Axes <axes-api-axis>`
610 - :doc:`Axis API </api/axis_api>`
611 """
612
613 def __str__(self):
614 return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})".format(
615 type(self).__name__, self._position.bounds)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…