예제 #1
0
파일: image.py 프로젝트: hongliliu/hyperspy
 def plot(self):
     if not utils.does_figure_object_exists(self.figure):
         self.create_figure()
         self.create_axis()     
     data = self.data_function()
     if self.auto_contrast is True:
         self.optimize_contrast(data)
     self.update_image()
     if self.plot_scale_bar is True:
         if self.pixel_size is not None:
             self.ax.scale_bar = widgets.Scale_Bar(
              ax = self.ax, units = self.pixel_units, 
              pixel_size = self.pixel_size)
     
     # Adjust the size of the window
     #size = [ 6,  6.* data.shape[0] / data.shape[1]]
     #self.figure.set_size_inches(size, forward = True)        
     self.figure.canvas.draw()
     self.connect()
예제 #2
0
파일: image.py 프로젝트: Gazworth/hyperspy
 def plot(self):
     if not utils.does_figure_object_exists(self.figure):
         self.create_figure()
         self.create_axis()     
     data = self.data_function()
     if self.auto_contrast is True:
         self.optimize_contrast(data)
     self.update_image()
     if self.plot_scale_bar is True:
         if self.pixel_size is not None:
             self.ax.scale_bar = widgets.Scale_Bar(
              ax = self.ax, units = self.pixel_units, 
              pixel_size = self.pixel_size)
     
     # Adjust the size of the window
     #size = [ 6,  6.* data.shape[0] / data.shape[1]]
     #self.figure.set_size_inches(size, forward = True)        
     self.figure.canvas.draw()
     self.connect()
예제 #3
0
파일: mpl_hie.py 프로젝트: csb60/hyperspy
 def is_active(self):
     return utils.does_figure_object_exists(self.image_plot.figure)
예제 #4
0
파일: spectrum.py 프로젝트: iygr/hyperspy
 def close(self):
     for line in self.ax_lines + self.right_ax_lines:
         line.close()
     if utils.does_figure_object_exists(self.figure):
         plt.close(self.figure)
예제 #5
0
파일: image.py 프로젝트: hongliliu/hyperspy
 def close(self):
     if utils.does_figure_object_exists(self.figure) is True:
         plt.close(self.figure)
예제 #6
0
 def is_active(self):
     return utils.does_figure_object_exists(self.spectrum_plot.figure)
예제 #7
0
 def close(self):
     for line in self.left_ax_lines + self.right_ax_lines:
         line.close()
     if utils.does_figure_object_exists(self.figure):
         plt.close(self.figure)
예제 #8
0
파일: image.py 프로젝트: Gazworth/hyperspy
 def close(self):
     if utils.does_figure_object_exists(self.figure) is True:
         plt.close(self.figure)