SIticks#

SIticks(ax=None, axis='y', fixed=False)[source]#

Apply SI tick formatting to one axis of a figure (e.g., 34k instead of 34000)

Parameters:
  • ax (any) – axes to modify; if None, use current; else can be a single axes object, a figure, or a list of axes

  • axis (str) – which axes to change (default ‘y’)

  • fixed (bool) – use fixed-location tick labels (by default, update them dynamically)

Example:

data = pl.rand(10)*1e4
pl.plot(data)
sc.SIticks()