pencil.visu.internal

Submodules

Classes

MinorSymLogLocator

Dynamically find minor tick positions based on the positions of

Functions

calc_lims([val_min, val_max, offset])

Gives back an optimal limit for an plot upper or lower value. Therefor, it uses an inbuild offset from the PROFILE.

export_fig(fig, filepath[, filename, PNG, PDF, EPS, ...])

Does a proper export of a figure handle to all kind of image files.

preparePlot(x_datasets, y_datasets[, x_errors, ...])

Package Contents

pencil.visu.internal.calc_lims(val_min=False, val_max=False, offset=False)

Gives back an optimal limit for an plot upper or lower value. Therefor, it uses an inbuild offset from the PROFILE.

pencil.visu.internal.export_fig(fig, filepath, filename=False, PNG=True, PDF=False, EPS=False, DPI=300, EXPORT_BBOX_INCES='tight', transparent=True, verbose=True, timestamp=False)

Does a proper export of a figure handle to all kind of image files.

class pencil.visu.internal.MinorSymLogLocator(linthresh)

Bases: matplotlib.ticker.Locator

Dynamically find minor tick positions based on the positions of major ticks for a symlog scaling.

Ticks will be placed between the major ticks. The placement is linear for x between -linthresh and linthresh, otherwise its logarithmically

linthresh
pencil.visu.internal.preparePlot(x_datasets, y_datasets, x_errors=False, y_errors=False, xmin=False, xmax=False, ymin=False, ymax=False, xlog=False, ylog=False, fig=False, ax=False, PROFILE=False)