Ignore:
Timestamp:
Sep 14, 2011 9: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)

File:
1 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, 
Note: See TracChangeset for help on using the changeset viewer.