Ignore:
Timestamp:
Nov 12, 2018 4:47:59 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_ordering, ESS_GUI_sync_sascalc
Children:
e5ae812
Parents:
ebcdb02
git-author:
Piotr Rozyczko <piotr.rozyczko@…> (10/31/18 04:34:14)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (11/12/18 04:47:59)
Message:

Merged ESS_GUI

File:
1 edited

Legend:

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

    rf5cec7c r133812c7  
    281281        new_plot.id = "Circ avg " + self.data.name 
    282282        new_plot.is_data = True 
     283        item = self._item 
    283284        if self._item.parent() is not None: 
    284285            item = self._item.parent() 
     
    286287 
    287288        self.manager.communicator.plotUpdateSignal.emit([new_plot]) 
     289 
     290        self.manager.communicator.forcePlotDisplaySignal.emit([item, new_plot]) 
     291 
     292        # Show the plot 
    288293 
    289294    def setSlicer(self, slicer): 
     
    508513            self.figure.canvas.draw() 
    509514 
     515    def imageShow(self, img, origin=None): 
     516        """ 
     517        Show background image 
     518        :Param img: [imread(path) from matplotlib.pyplot] 
     519        """ 
     520        if origin is not None: 
     521            im = self.ax.imshow(img, origin=origin) 
     522        else: 
     523            im = self.ax.imshow(img) 
     524 
    510525    def update(self): 
    511526        self.figure.canvas.draw() 
Note: See TracChangeset for help on using the changeset viewer.