finesse.plotting.tools module

finesse.plotting.tools.add_colorbar(im, **kwargs)[source]

Adds a vertical color bar to an image plot.

Parameters

im : matplotlib.image.AxesImage

An image plot, e.g. return value of a call to plt.imshow().

Returns

Handle to the colorbar.

finesse.plotting.tools.init(mode='display', dpi=None, fmts=None)[source]

Sets up default plotting parameters for a desired display mode.

Parameters

modestr

Display mode to use, either ‘display’ or ‘paper’.

dpiint, optional

DPI (Dots per inch) to display and save figures with. Defaults to current setting.

fmtslist of str, optional

List of image formats to allow for display when running under IPython; defaults to DEFAULT_FORMATS.