Changeset 7053d08 in sasview


Ignore:
Timestamp:
Jan 11, 2012 5:24:36 PM (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:
c9de078
Parents:
809e774
Message:

set the same font properties for both the axis label and tick label

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/PlotPanel.py

    r70ec588d r7053d08  
    12651265        if font: 
    12661266            self.subplot.set_xlabel(label, fontproperties=font, color=color) 
     1267            for tick in self.subplot.xaxis.get_major_ticks(): 
     1268                tick.label.set_fontproperties(font)  
    12671269        else: 
    12681270            self.subplot.set_xlabel(label, color=color) 
     
    12771279        if font: 
    12781280            self.subplot.set_ylabel(label, fontproperties=font, color=color) 
     1281            for tick_label in self.subplot.get_yticklabels(): 
     1282                tick_label.set_fontproperties(font) 
    12791283        else: 
    12801284            self.subplot.set_ylabel(label, color=color) 
Note: See TracChangeset for help on using the changeset viewer.