Changeset 08b9e586 in sasview for guitools


Ignore:
Timestamp:
Aug 8, 2008 8:59:23 AM (16 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:
f1181977
Parents:
c594365
Message:

Updated plot legend behavior

Location:
guitools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    r6aaf444 r08b9e586  
    595595        # TODO: this is when the backing store should be swapped in. 
    596596        from matplotlib.font_manager import FontProperties 
    597         self.subplot.legend(prop=FontProperties(size=10)) 
    598         #self.subplot.legend() 
    599         pass 
     597        self.subplot.legend(prop=FontProperties(size=10), handletextsep=.05) 
    600598 
    601599    def xaxis(self,label,units): 
  • guitools/plottables.py

    rd6d411d r08b9e586  
    858858        for item in collection: 
    859859            #map[item] = label(item, collection) 
    860             map[item] = r"$\rm{%s}$" % item.name 
     860            #map[item] = r"$\rm{%s}$" % item.name 
     861            map[item] = item.name 
    861862        return map 
    862863     
     
    897898        for item in collection: 
    898899            #map[item] = label(item, collection) 
    899             map[item] = r"$\rm{%s}$" % item.name 
     900            #map[item] = r"$\rm{%s}$" % item.name 
     901            map[item] = item.name 
    900902        return map 
    901903    
Note: See TracChangeset for help on using the changeset viewer.