docs: def create_main_frame(self):
          self.resize(800, 1000)
          self.main_frame = QWidget()
          self.dpi = 128
          self.fig = Figure((12, 11), dpi=self.dpi)
  
          self.fig.subplots_adjust(hspace=0.5, wspace=0.5, left=0.1, bottom=0.2, right=0.7, top=0.9)
  
          # 8 * np.sqrt(3)
          self.canvas = FigureCanvas(self.fig)
          self.canvas.setParent(self.main_frame)
  
          self.axes = self.fig.add_subplot(111)
          self.axes.axis('off')
          self.axes.set_xlim(-10, 110)
          self.axes.set_ylim(-105 * np.sqrt(3) / 2, 105 * np.sqrt(3) / 2)
  
          self.canvas = FigureCanvas(self.fig)
          self.canvas.setParent(self.main_frame)
          self.axes = self.fig.add_subplot(111)
          # Create the navigation toolbar, tied to the canvas
          self.mpl_toolbar = NavigationToolbar(self.canvas, self.main_frame)
  
          # Other GUI controls
          self.save_button = QPushButton('&Save')
          self.save_button.clicked.connect(self.saveImgFile)
  
          #self.result_button = QPushButton('&Result')
          #self.result_button.clicked.connect(self.Explain)
  
          self.legend_cb = QCheckBox('&Legend')
          self.legend_cb.setChecked(True)
          self.legend_cb.stateChanged.connect(self.QAPF)  # int
  
          self.slider_left_label = QLabel('Plutonic')
          self.slider_right_label = QLabel('Volcanic')
  
  
          self.slider = QSlider(Qt.Horizontal)
          self.slider.setRange(0, 1)
          self.slider.setValue(0)
          self.slider.setTracking(True)
          self.slider.setTickPosition(QSlider.TicksBothSides)
          self.slider.valueChanged.connect(self.QAPF)  # int
  
          '''
          self.Tag_cb = QCheckBox('&Plutonic')
          self.Tag_cb.setChecked(True)
          self.Tag_cb.stateChanged.connect(self.QAPF)  # int
          if (self.Tag_cb.isChecked()):
              self.Tag_cb.setText('&Plutonic')
          else:
              self.Tag_cb.setText('&Volcanic')
          '''
  
  
          self.detail_cb = QCheckBox('&Detail')
          self.detail_cb.setChecked(True)
          self.detail_cb.stateChanged.connect(self.QAPF)  # int
  
          #
          # Layout with box sizers
          #
          self.hbox = QHBoxLayout()
  
          for w in [self.save_button,  self.detail_cb, self.legend_cb,self.slider_left_label,self.slider,self.slider_right_label]:
              self.hbox.addWidget(w)
              self.hbox.setAlignment(w, Qt.AlignVCenter)
  
          self.vbox = QVBoxLayout()
          self.vbox.addWidget(self.mpl_toolbar)
          self.vbox.addWidget(self.canvas)
          self.vbox.addLayout(self.hbox)
  
  
  
          self.textbox = GrowingTextEdit(self)
  
          self.vbox.addWidget(self.textbox)
  
          self.main_frame.setLayout(self.vbox)
          self.setCentralWidget(self.main_frame)
  
  
  
          w=self.width()
          h=self.height()
  
          #setFixedWidth(w/10)
  
          self.slider.setMinimumWidth(w/10)
          self.slider_left_label.setMinimumWidth(w/10)
          self.slider_right_label.setMinimumWidth(w/10)