autosweep.sweep.FigHandler#

class autosweep.sweep.FigHandler(subplts: tuple = (1, 1))[source]#

A class which wraps some matplotlib functionality in order to speed-up plotting within tests. This can also be used more generally within jypter notebooks or other scripts as well.

__init__(subplts: tuple = (1, 1))[source]#
Parameters:

subplts (tuple, default (1, 1)) – The shape of supblots to add to this figure:

Methods

__init__([subplts])

param subplts:

The shape of supblots to add to this figure:

save_fig(path)

Saves a figure as a png to a file.

to_base64()

Used to save a png figure in base64 representation for embedding into HTML files.

Attributes

ax

The axis of there is one plot, or the first axis if there are multiple.