gui.widget_mpl module

This widget contains the layout for graphs which use the matplotlib library to generate graphs. The widget can be executed as a standalone version.

Note

Generally, for all experiments pyqt graph was used for performance issues. However, this widget also works and should not be deleted because it might become usefull in the future if the tasks are not computationally expensive. Additionally, some experiments (e.g. show_signal) have a working matplotlib class which is currently not used.

Functionalities provided in this widget:

  1. Provides a canvas to plot graphs into it.

  2. Provides a toolbar with an autoscale check box.

  3. Provides clearing of canvas if plots are consecutively drawn (i.e. in a for loop).

class MplCanvas(parent=None, width=5, height=4, dpi=100)[source]

Bases: matplotlib.backends.backend_qt5agg.FigureCanvasQTAgg

class MplWidget(parent=None)[source]

Bases: PyQt5.QtWidgets.QWidget

clear_figure()[source]

Removes all subplots/ axes from the figure.

toggle_autoscale()[source]