Changeset d9e7792 in sasview for src/sas/qtgui/Plotting/Plotter.py


Ignore:
Timestamp:
Nov 30, 2018 2:57:46 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
99f8760, 11a336f, 9d23e4c
Parents:
5d75a181
Message:

Show Plot now restores minimized plots. SASVIEW-1221 == trac#13
Added "Minimize all plots" to Window menu
Changed draw → draw_idle to avoid weird numpy linalg errors

File:
1 edited

Legend:

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

    rc30822c rd9e7792  
    205205 
    206206        # refresh canvas 
    207         self.canvas.draw() 
     207        self.canvas.draw_idle() 
    208208 
    209209    def createContextMenu(self): 
     
    352352            # Update the list of annotations 
    353353            self.textList.append(new_text) 
    354             self.canvas.draw() 
     354            self.canvas.draw_idle() 
    355355 
    356356    def onRemoveText(self): 
     
    460460        self.ax.set_xlabel(xl) 
    461461        self.ax.set_ylabel(yl) 
    462         self.canvas.draw() 
     462        self.canvas.draw_idle() 
    463463 
    464464    def onFreeze(self, id): 
     
    694694        self.legend_pos_loc = tuple(loc_in_norm_axes) 
    695695        self.legend._loc = self.legend_pos_loc 
    696         # self.canvas.draw() 
    697696        self.canvas.draw_idle() 
    698697 
Note: See TracChangeset for help on using the changeset viewer.