PlasmaCalcs.plotting.plot_tools.lims.get_data_interval
- PlasmaCalcs.plotting.plot_tools.lims.get_data_interval(x, ax=None)
- return the minimum interval containing all data on the plot axes.Returned as [min, max] regardless of axis orientation.
- x: ‘x’ or ‘y’
- str telling the axis to get the data interval for.
- ax: None or matplotlib axis object
- the Axes to get the data interval from. None –> ax=plt.gca().will use ax.xaxis or ax.yaxis, depending on
x.