Matplotlib backend to include matplotlib figures as dockwidgets in the psyplot gui

This backend is based upon matplotlibs qt4agg and qt5agg backends.

Classes:

FigureCanvas

alias of PsyplotCanvas

FigureManager

alias of PsyplotCanvasManager

FigureWidget

A simple container for figures in the psyplot backend

FiguresDock

Reimplemented QDockWidget to remove the dock widget when closed

PsyplotCanvas([figure])

The canvas class with reimplemented resizing

PsyplotCanvasManager(canvas, num)

The canvas manager for the psyplot backend interacting with the mainwindow of the psyplot gui

Functions:

new_figure_manager(num, *args, **kwargs)

Create a new figure manager instance

new_figure_manager_given_figure(num, figure)

Create a new figure manager instance for the given figure.

psyplot_gui.backend.FigureCanvas

alias of PsyplotCanvas Methods:

resizeEvent(event)

Reimplemented to make sure that the figure is only resized for events with height and width greater 0

psyplot_gui.backend.FigureManager

alias of PsyplotCanvasManager Methods:

resize(width, height)

For GUI backends, resize the window (in physical pixels).

statusBar(*args, **kwargs)

Attributes:

toolbar

class psyplot_gui.backend.FigureWidget[source]

Bases: DockMixin, QWidget

A simple container for figures in the psyplot backend

Classes:

dock_cls

alias of FiguresDock

dock_cls

alias of FiguresDock Methods:

close(*args, **kwargs)

Reimplemented to remove the dock widget from the mainwindow when closed

class psyplot_gui.backend.FiguresDock[source]

Bases: QDockWidget

Reimplemented QDockWidget to remove the dock widget when closed

Methods:

close(*args, **kwargs)

Reimplemented to remove the dock widget from the mainwindow when closed

close(*args, **kwargs)[source]

Reimplemented to remove the dock widget from the mainwindow when closed

class psyplot_gui.backend.PsyplotCanvas(figure=None)[source]

Bases: FigureCanvasQTAgg

The canvas class with reimplemented resizing

Methods:

resizeEvent(event)

Reimplemented to make sure that the figure is only resized for events with height and width greater 0

resizeEvent(event)[source]

Reimplemented to make sure that the figure is only resized for events with height and width greater 0

class psyplot_gui.backend.PsyplotCanvasManager(canvas, num)[source]

Bases: FigureManagerQT

The canvas manager for the psyplot backend interacting with the mainwindow of the psyplot gui

Methods:

resize(width, height)

For GUI backends, resize the window (in physical pixels).

statusBar(*args, **kwargs)

Attributes:

toolbar

resize(width, height)[source]

For GUI backends, resize the window (in physical pixels).

statusBar(*args, **kwargs)[source]
toolbar = None
psyplot_gui.backend.new_figure_manager(num, *args, **kwargs)[source]

Create a new figure manager instance

psyplot_gui.backend.new_figure_manager_given_figure(num, figure)[source]

Create a new figure manager instance for the given figure.