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

Method set_view_interval

lib/matplotlib/axis.py:1172–1185  ·  view source on GitHub ↗

Set the axis view limits. This method is for internal use; Matplotlib users should typically use e.g. `~.Axes.set_xlim` or `~.Axes.set_ylim`. If *ignore* is False (the default), this method will never reduce the preexisting view limits, only expand them if *vmin* o

(self, vmin, vmax, ignore=False)

Source from the content-addressed store, hash-verified

1170 raise NotImplementedError('Derived must override')
1171
1172 def set_view_interval(self, vmin, vmax, ignore=False):
1173 """
1174 Set the axis view limits. This method is for internal use; Matplotlib
1175 users should typically use e.g. `~.Axes.set_xlim` or `~.Axes.set_ylim`.
1176
1177 If *ignore* is False (the default), this method will never reduce the
1178 preexisting view limits, only expand them if *vmin* or *vmax* are not
1179 within them. Moreover, the order of *vmin* and *vmax* does not matter;
1180 the orientation of the axis will not change.
1181
1182 If *ignore* is True, the view limits will be set exactly to ``(vmin,
1183 vmax)`` in that order.
1184 """
1185 raise NotImplementedError('Derived must override')
1186
1187 def get_data_interval(self):
1188 """Return the ``(min, max)`` data limits of this axis."""

Callers 5

__init__Method · 0.95
AxisClass · 0.95
_set_limMethod · 0.95
_set_tick_locationsMethod · 0.45
legend_elementsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected