Changeset d4edd72 in sasview


Ignore:
Timestamp:
Aug 17, 2011 9:38:32 AM (13 years ago)
Author:
Jessica Tumarkin <jtumarki@…>
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:
c966e1c
Parents:
d48858da
Message:

attempted to fix color issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitting.py

    r9f4f8f4 rd4edd72  
    215215        item = plotpanel.plots[graph.selected_plottable] 
    216216        self.test_model_color = item.custom_color 
    217         #print "i'm in fitting - color is",self.test_model_color 
     217        print "Self.test_model_color has been set to ",self.test_model_color 
    218218        if item.__class__.__name__ is "Data2D":  
    219219            if hasattr(item,"is_data"): 
     
    14491449            current_pg = self.fit_panel.get_page_by_id(page_id) 
    14501450            title = new_plot.title 
    1451             new_plot.custom_color = self.test_model_color 
    14521451            #print "just set the new plot color" 
    14531452            if new_plot.id in self.color_dict: 
    14541453                new_plot.custom_color = self.color_dict[new_plot.id] 
     1454            else: 
     1455                new_plot.custom_color = self.test_model_color 
     1456                 
     1457            print "Current plot ID: ", new_plot.id 
     1458            print "Current plot Color: ", new_plot.custom_color 
    14551459            #print "I HAVE JUST ADDED A NEW COLOR/ID ", new_plot.custom_color 
    14561460            wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
Note: See TracChangeset for help on using the changeset viewer.