class setaxislim(which=None, ax=None, data=None)[source]#

A small script to determine how the y limits should be set. Looks at all data (a list of arrays) and computes the lower limit to use, e.g.:

sc.setaxislim([np.array([-3,4]), np.array([6,4,6])], ax)

will keep Matplotlib’s lower limit, since at least one data value is below 0.

Note, if you just want to set the lower limit, you can do that with this function via: