Changeset f866fb5 in sasview for plottools/src
- Timestamp:
- Aug 16, 2012 11:46:12 AM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/PlotPanel.py
r5da3cc5 rf866fb5 1295 1295 1296 1296 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 + '$' 1297 1301 if units != "": 1298 1302 label = label + " (" + units + ")" 1299 if label.count("{") > 0 and label.count("$") < 2:1300 label = '$' + label + '$'1301 1303 if font: 1302 1304 self.subplot.set_xlabel(label, fontproperties=font, color=color) … … 1314 1316 """yaxis label and units.""" 1315 1317 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 + '$' 1317 1322 if units != "": 1318 1323 label = label + " (" + units + ")" 1319 if label.count("{") > 0 and label.count("$") < 2:1320 label = '$' + label + '$'1321 1324 if font: 1322 1325 self.subplot.set_ylabel(label, fontproperties=font, color=color)
Note: See TracChangeset
for help on using the changeset viewer.