sidpy.viz.plot_utils.misc.use_scientific_ticks

sidpy.viz.plot_utils.misc.use_scientific_ticks(axis, is_x=True, formatting='%.2e')[source]

Makes the desired axis use scientific notation for its tick labels. This is applicable only for 1D plots at the moment.

Parameters:
  • axis (matplotlib.pyplot.axis object) – Axis handle

  • is_x (bool, optional. Default = True) – If set to true, scientific notation will be applied only to the X axis. If set to False, scientific notation will be applied only to the Y axis.

  • formatting (str / unicode, optional. Default = 2 digits of precision) – Precision for the tick labels