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’)
Example:
data = np.random.rand(10)*1e4 plt.plot(data) sc.SIticks()