Changeset 092a3d9 in sasview for src/sas/qtgui/Plotter.py


Ignore:
Timestamp:
Jan 20, 2017 6:26:35 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
03c372d
Parents:
0f3c22d
Message:

Color Map control for 2D charts. Initial commit - SASVIEW-391

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotter.py

    r0f3c22d r092a3d9  
    2828        self.plot_dict = {} 
    2929 
    30         # Simple window for data display 
    31         self.txt_widget = QtGui.QTextEdit(None) 
    3230        # Window for text add 
    3331        self.addText = AddText(self) 
     
    336334            self.canvas.draw_idle() 
    337335 
    338     def onDataInfo(self, plot_data): 
    339         """ 
    340         Displays data info text window for the selected plot 
    341         """ 
    342         text_to_show = GuiUtils.retrieveData1d(plot_data) 
    343         # Hardcoded sizes to enable full width rendering with default font 
    344         self.txt_widget.resize(420,600) 
    345  
    346         self.txt_widget.setReadOnly(True) 
    347         self.txt_widget.setWindowFlags(QtCore.Qt.Window) 
    348         self.txt_widget.setWindowIcon(QtGui.QIcon(":/res/ball.ico")) 
    349         self.txt_widget.setWindowTitle("Data Info: %s" % plot_data.filename) 
    350         self.txt_widget.insertPlainText(text_to_show) 
    351  
    352         self.txt_widget.show() 
    353         # Move the slider all the way up, if present 
    354         vertical_scroll_bar = self.txt_widget.verticalScrollBar() 
    355         vertical_scroll_bar.triggerAction(QtGui.QScrollBar.SliderToMinimum) 
    356  
    357     def onSavePoints(self, plot_data): 
    358         """ 
    359         Saves plot data to a file 
    360         """ 
    361         GuiUtils.saveData1D(plot_data) 
    362  
    363336    def onLinearFit(self, id): 
    364337        """ 
Note: See TracChangeset for help on using the changeset viewer.