update_ticks

glue.core.util.update_ticks(axes, coord, kinds, is_log, categories)[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