Run GUI

Launches a GUI that allows user to change the features of a plot

class plotpainter.run_gui.Toolbar(*args, **kwargs)

Toolbar for the PySimpleGUI window.

Parameters

None

plotpainter.run_gui.draw_figure_w_toolbar(canvas, fig, canvas_toolbar)

Draw the matplotlib.figure.Figure in the GUI along with the Toolbar

Parameters
  • canvas (PySimpleGUI.Windowwindow['fig_cv'].TKCanvas) – canvas of the PySimpleGUI.Window

  • fig (matplotlib.figure.Figure) – the figure to be plotted and then have artist colors adjusted

  • canvas_toolbar – (PySimpleGUI.Windowwindow[‘controls_cv’].TKCanvas): toolbar of the PySimpleGUI.Window

Returns

None

plotpainter.run_gui.run_GUI(fig)

When you run the plotpainter GUI with a given matplotlib.figure.Figure, it brings up your plot in a GUI that you can use to change the plot colors.

Parameters

fig (matplotlib.figure.Figure) – the matplotlib Figure that the user will change colors of artists on

Returns

None