update_ticks#
- glue.core.util.update_ticks(axes, coord, kinds, is_log, categories, projection='rectilinear', radians=True, label=None)[source]#
Changes the axes to have the proper tick formatting based on the type of component.
Returns None or the number of categories if components is Categorical.
- Parameters:
- axes
matplotlib.axes.Axes
A matplotlib axis object to alter
- coord{ ‘x’ | ‘y’ }
The coordinate axis on which to update the ticks
- componentsiterable
A list of components that are plotted along this axis
- if_logboolean
Whether the axis has a log-scale
- projection: str
The name of the matplotlib projection for the axes object. Defaults to ‘rectilinear’. Currently only the scatter viewer supports different projections.
- axes