mekPlotFilter#

class pyCGM2.Mek.mek.mekPlot.mekPlotFilter(procedure=None)#

Filter running a mek plot procedure.

Parameters:

procedure (AbstractMekPlotProcedure, optional) – Plot procedure.

__init__(procedure=None)#

Methods

__init__([procedure])

run([show, filename])

Build the figure, then optionally save and show it.

setProcedure(procedure)

Set the plot procedure.

run(show=True, filename=None)#

Build the figure, then optionally save and show it.

Parameters:
  • show (bool, optional) – Call plt.show(). Defaults to True.

  • filename (str, optional) – Save the figure to this file (format from the extension).

Returns:

matplotlib.figure.Figure – The figure (None without procedure).

setProcedure(procedure)#

Set the plot procedure.