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 wich returns a tuple of x,y

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

Parameters:
  • artists – An iterable collection of artists
  • axis – Which axis to compute. 0=xaxis, 1=yaxis