visible_limits

glue.core.util.visible_limits(artists, axis)[source]

Determines the data limits for the data in a set of artists.

Ignores non-visible artists

Assumes each artist as a get_data method which returns a tuple of x,y

Returns a tuple of min, max for the requested axis, or None if no data present

Parameters
artistsiterable

An iterable collection of artists

axisint

Which axis to compute. 0=xaxis, 1=yaxis