Changeset f866fb5 in sasview for plottools/src


Ignore:
Timestamp:
Aug 16, 2012 11:46:12 AM (12 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:
d8e3f7c
Parents:
9f51c2c
Message:

pylint cleanups

File:
1 edited

Legend:

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

    r5da3cc5 rf866fb5  
    12951295 
    12961296        self.xcolor = color 
     1297        if units.count("{") > 0 and units.count("$") < 2: 
     1298            units = '$' + units + '$' 
     1299        if label.count("{") > 0 and label.count("$") < 2: 
     1300            label = '$' + label + '$' 
    12971301        if units != "": 
    12981302            label = label + " (" + units + ")" 
    1299         if label.count("{") > 0 and label.count("$") < 2: 
    1300             label = '$' + label + '$' 
    13011303        if font: 
    13021304            self.subplot.set_xlabel(label, fontproperties=font, color=color) 
     
    13141316        """yaxis label and units.""" 
    13151317        self.ycolor = color 
    1316  
     1318        if units.count("{") > 0 and units.count("$") < 2: 
     1319            units = '$' + units + '$' 
     1320        if label.count("{") > 0 and label.count("$") < 2: 
     1321            label = '$' + label + '$' 
    13171322        if units != "": 
    13181323            label = label + " (" + units + ")" 
    1319         if label.count("{") > 0 and label.count("$") < 2: 
    1320             label = '$' + label + '$' 
    13211324        if font: 
    13221325            self.subplot.set_ylabel(label, fontproperties=font, color=color) 
Note: See TracChangeset for help on using the changeset viewer.