matplotlib.axis.Axis.set_data_interval#

Axis.set_data_interval(vmin,vmax,ignore=False)[source]#

Set the axis data limits. This method is for internal use.

Ifignore is False (the default), this method will never reduce thepreexisting data limits, only expand them ifvmin orvmax are notwithin them. Moreover, the order ofvmin andvmax does not matter;the orientation of the axis will not change.

Ifignore is True, the data limits will be set exactly to(vmin,vmax) in that order.