labm8.viz

Graphing helper.

exception labm8.viz.Error

Visualisation module base error class.

labm8.viz.finalise(output=None, figsize=None, tight=True, **kwargs)

Finalise a plot.

Display or show the plot, then close it.

Parameters:
  • output (str, optional) – Path to save figure to. If not given, show plot.
  • figsize ((float, float), optional) – Figure size in inches.
  • **kwargs – Any additional arguments to pass to plt.savefig(). Only required if output is not None.