Ignore:
Timestamp:
Sep 14, 2011 11:27:17 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
296b9c1
Parents:
73eb92fc
Message:

fixed an error that the 2Dmodel panel was not completely removed after deleting the data (broken 2D panel)

Location:
sansguiframe/src/sans/guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    r73eb92fc rfec4939  
    216216            if id in theory_list.keys(): 
    217217                data = theory_list[id] 
    218             
     218             
    219219            del self.plots[id] 
    220220            self.graph.render(self) 
     
    223223                #onRemove: graph is empty must be the panel must be destroyed 
    224224                self.parent.delete_panel(self.uid) 
     225 
    225226         
    226227    def plot_data(self, data): 
     
    529530        ## Set the view scale for all plots 
    530531        self._onEVT_FUNC_PROPERTY() 
    531         ## render the graph 
    532         #self.graph.render(self) 
    533         #self.subplot.figure.canvas.draw_idle() 
    534         print "PARENT: ", self.parent 
    535532        wx.PostEvent(self.parent, 
    536533                      NewColorEvent(color=selected_plot.custom_color, 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/plotting.py

    r53cf669 rfec4939  
    9797            panel = self.plot_panels[group_id] 
    9898            panel.remove_data_by_id(id=id) 
     99             
    99100            return True 
    100101        return False 
Note: See TracChangeset for help on using the changeset viewer.