from PyQt5.QtWidgets import *
from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
class PstaticWidget(QWidget):

    def __init__(self, parent=None):
        QWidget.__init__(self, parent)

        self.fig_pstatic = Figure()
        self.fig_pstatic.set_facecolor('#ffffff')
        self.canvas_pstatic = FigureCanvas(self.fig_pstatic)
        vertical_layout = QVBoxLayout()
        vertical_layout.addWidget(self.canvas_pstatic)
        self.canvas_pstatic.axes_pstatic = self.canvas_pstatic.figure.add_subplot(111)
        self.setLayout(vertical_layout)

        self.canvas_pstatic.axes_pstatic.set_xticks([])
        self.canvas_pstatic.axes_pstatic.set_yticks([])
        self.canvas_pstatic.axes_pstatic.axis('off')
        self.fig_pstatic.subplots_adjust(left=0.12, bottom=0.15, right=0.985, top=0.95)
        self.toolbar = NavigationToolbar(self.canvas_pstatic, self)
        self.toolbar.setFixedHeight(25)
        vertical_layout.addWidget(self.toolbar)
[(10, 'matplotlib.figure.Figure', 'Figure', False, 'from matplotlib.figure import Figure\n'), (12, 'matplotlib.backends.backend_qt5agg.FigureCanvas', 'FigureCanvas', False, 'from matplotlib.backends.backend_qt5agg import FigureCanvas\n'), (22, 'matplotlib.backends.backend_qt5agg.NavigationToolbar2QT', 'NavigationToolbar', True, 'from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar\n')]