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, 27, 10, 35), 'matplotlib.figure.Figure', 'Figure', ({}, {}), '()', False, 'from matplotlib.figure import Figure\n'), ((12, 30, 12, 60), 'matplotlib.backends.backend_qt5agg.FigureCanvas', 'FigureCanvas', ({(12, 43, 12, 59): 'self.fig_pstatic'}, {}), '(self.fig_pstatic)', False, 'from matplotlib.backends.backend_qt5agg import FigureCanvas\n'), ((22, 23, 22, 67), 'matplotlib.backends.backend_qt5agg.NavigationToolbar2QT', 'NavigationToolbar', ({(22, 41, 22, 60): 'self.canvas_pstatic', (22, 62, 22, 66): 'self'}, {}), '(self.canvas_pstatic, self)', True, 'from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar\n')]