sarkas.tools.observables.plot_labels#

sarkas.tools.observables.plot_labels(xdata, ydata, xlbl, ylbl, units)[source]#

Create plot labels with correct units and prefixes.

Parameters
  • xdata (numpy.ndarray) – X values.

  • ydata (numpy.ndarray) – Y values.

  • xlbl (str) – String of the X quantity.

  • ylbl (str) – String of the Y quantity.

  • units (str) – ‘cgs’ or ‘mks’.

Returns

  • xmultiplier (float) – Scaling factor for X data.

  • ymultiplier (float) – Scaling factor for Y data.

  • xprefix (str) – Prefix for X units label

  • yprefix (str) – Prefix for Y units label.

  • xlabel (str) – X label units.

  • ylabel (str) – Y label units.