Changeset f0ff8d65 in sasview for prview/perspectives


Ignore:
Timestamp:
Sep 29, 2009 8:24:46 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
694ca1c
Parents:
7d0563e
Message:

prview: fixed problem with smeared plot appearing in a new window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/pr.py

    r0ab485b rf0ff8d65  
    326326            new_plot.xaxis("\\rm{Q}", 'A^{-1}') 
    327327            new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
    328             #new_plot.group_id = "test group" 
    329             wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="I(q)")) 
     328            # If we have a group ID, use it 
     329            if pr.info.has_key("plot_group_id"): 
     330                new_plot.group_id = pr.info["plot_group_id"] 
     331            wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title=title)) 
    330332         
    331333         
     
    595597                    #TODO: we might want to check that the units are consistent with I(q) 
    596598                    #      before allowing this menu item 
    597                 if issubclass(item.__class__, DataLoader.data_info.Data1D): 
     599                if not self.standalone and issubclass(item.__class__, DataLoader.data_info.Data1D): 
    598600                    return [["Compute P(r)", "Compute P(r) from distribution", self._on_context_inversion]]       
    599601                 
Note: See TracChangeset for help on using the changeset viewer.