Changeset 133812c7 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Nov 12, 2018 6:47:59 AM (6 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 06:34:14)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (11/12/18 06:47:59)
Message:

Merged ESS_GUI

Location:
src/sas/qtgui/Plotting
Files:
6 edited

Legend:

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

    rdce68f6 r133812c7  
    4242        layout.setContentsMargins(0, 0, 0, 0) 
    4343        self.frame.setLayout(layout) 
     44 
     45        self.plotter.plot() 
    4446        layout.addWidget(self.plotter) 
    45  
    46         self.plotter.plot() 
    4747        self.subplot = self.plotter.ax 
    4848 
  • 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() 
  • src/sas/qtgui/Plotting/Slicers/AnnulusSlicer.py

    r63467b6 r133812c7  
    148148        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
    149149        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
     150        self.base.manager.communicator.forcePlotDisplaySignal.emit([item, new_plot]) 
    150151 
    151152        if self.update_model: 
  • src/sas/qtgui/Plotting/Slicers/BoxSlicer.py

    r63467b6 r133812c7  
    188188        new_plot.id = (self.averager.__name__) + self.base.data.name 
    189189        new_plot.is_data = True 
     190        item = self._item 
    190191        if self._item.parent() is not None: 
    191192            item = self._item.parent() 
    192193        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
     194        self.base.manager.communicator.forcePlotDisplaySignal.emit([item, new_plot]) 
    193195 
    194196        if self.update_model: 
  • src/sas/qtgui/Plotting/Slicers/SectorSlicer.py

    r63467b6 r133812c7  
    167167        new_plot.id = "SectorQ" + self.base.data.name 
    168168        new_plot.is_data = True 
     169        item = self._item 
    169170        if self._item.parent() is not None: 
    170171            item = self._item.parent() 
     
    172173 
    173174        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
     175        self.base.manager.communicator.forcePlotDisplaySignal.emit([item, new_plot]) 
    174176 
    175177        if self.update_model: 
  • src/sas/qtgui/Plotting/UI/MaskEditorUI.ui

    re20870bc r133812c7  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>687</width> 
    10     <height>507</height> 
     9    <width>824</width> 
     10    <height>453</height> 
    1111   </rect> 
    1212  </property> 
Note: See TracChangeset for help on using the changeset viewer.