Changeset b4b8589 in sasview for src/sas/qtgui/Plotter2D.py


Ignore:
Timestamp:
Dec 8, 2016 5:53:56 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:
fecfe28
Parents:
cad617b
Message:

Code review from WP. Also, added 1D plots with error bars as default.

File:
1 edited

Legend:

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

    rcad617b rb4b8589  
    154154 
    155155            cbax = self.figure.add_axes([0.84, 0.2, 0.02, 0.7]) 
     156 
     157            # Current labels for axes 
     158            self.ax.set_ylabel(self.y_label) 
     159            self.ax.set_xlabel(self.x_label) 
     160 
     161            # Title only for regular charts 
     162            if not self.quickplot: 
     163                self.ax.set_title(label=self._title) 
     164 
     165 
    156166        else: 
    157167            # clear the previous 2D from memory 
     
    166176            ax = Axes3D(self.figure) 
    167177            cbax = self.figure.add_axes([0.84, 0.1, 0.02, 0.8]) 
     178 
    168179            # Disable rotation for large sets. 
    169180            # TODO: Define "large" for a dataset 
     
    182193        else: 
    183194            cb = self.figure.colorbar(im, cax=cbax) 
     195 
    184196        cb.update_bruteforce(im) 
    185197        cb.set_label('$' + self.scale + '$') 
     
    195207        QtGui.QDialog.__init__(self) 
    196208        Plotter2DWidget.__init__(self, manager=parent, quickplot=quickplot, dimension=dimension) 
     209        icon = QtGui.QIcon() 
     210        icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) 
     211        self.setWindowIcon(icon) 
Note: See TracChangeset for help on using the changeset viewer.