Changeset f80236f in sasview for plottools/src/danse
- Timestamp:
- Jan 12, 2012 11:10:18 AM (13 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:
- 6f140f2
- Parents:
- 3a6c3b9
- Location:
- plottools/src/danse/common/plottools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/PlotPanel.py
r26b0a7c rf80236f 258 258 self.xaxis_unit = None 259 259 self.xaxis_color = 'black' 260 self.xaxis_tick = False260 self.xaxis_tick = None 261 261 self.yaxis_font = None 262 262 self.yaxis_label = None 263 263 self.yaxis_unit = None 264 264 self.yaxis_color = 'black' 265 self.yaxis_tick = False265 self.yaxis_tick = None 266 266 267 267 # check if zoomed. … … 1061 1061 """ 1062 1062 xaxis_label, xaxis_unit, xaxis_font, xaxis_color,\ 1063 is_ok, xaxis_tick = self._on_axis_label(axis='x')1063 is_ok, is_tick = self._on_axis_label(axis='x') 1064 1064 if not is_ok: 1065 1065 return … … 1069 1069 self.xaxis_font = xaxis_font 1070 1070 self.xaxis_color = xaxis_color 1071 self.xaxis_tick = xaxis_tick 1071 if is_tick: 1072 self.xaxis_tick = xaxis_font 1072 1073 1073 1074 if self.data != None: … … 1100 1101 """ 1101 1102 yaxis_label, yaxis_unit, yaxis_font, yaxis_color,\ 1102 is_ok, yaxis_tick = self._on_axis_label(axis='y')1103 is_ok, is_tick = self._on_axis_label(axis='y') 1103 1104 if not is_ok: 1104 1105 return 1105 1106 1106 1107 self.yaxis_label = yaxis_label 1107 1108 self.yaxis_unit = yaxis_unit 1108 1109 self.yaxis_font = yaxis_font 1109 1110 self.yaxis_color = yaxis_color 1110 self.yaxis_tick = yaxis_tick 1111 if is_tick: 1112 self.yaxis_tick = yaxis_font 1111 1113 1112 1114 if self.data != None: … … 1255 1257 handletextsep=.05, loc=self.legendLoc) 1256 1258 1257 def xaxis(self, label, units, font=None, color='black', t_font= False):1259 def xaxis(self, label, units, font=None, color='black', t_font=None): 1258 1260 """xaxis label and units. 1259 1261 … … 1271 1273 if font: 1272 1274 self.subplot.set_xlabel(label, fontproperties=font, color=color) 1273 if t_font :1275 if t_font != None: 1274 1276 for tick in self.subplot.xaxis.get_major_ticks(): 1275 tick.label.set_fontproperties(font) 1277 tick.label.set_fontproperties(t_font) 1278 for line in self.subplot.xaxis.get_ticklines(): 1279 size = t_font.get_size() 1280 line.set_markersize(size / 3) 1281 #line.set_markeredgewidth(int(size / 24 + 1)) 1276 1282 else: 1277 1283 self.subplot.set_xlabel(label, color=color) 1278 1284 pass 1279 1285 1280 def yaxis(self, label, units, font=None, color='black', t_font= False):1286 def yaxis(self, label, units, font=None, color='black', t_font=None): 1281 1287 """yaxis label and units.""" 1282 1288 if units != "": … … 1286 1292 if font: 1287 1293 self.subplot.set_ylabel(label, fontproperties=font, color=color) 1288 if t_font :1294 if t_font != None: 1289 1295 for tick_label in self.subplot.get_yticklabels(): 1290 tick_label.set_fontproperties(font) 1296 tick_label.set_fontproperties(t_font) 1297 for line in self.subplot.yaxis.get_ticklines(): 1298 size = t_font.get_size() 1299 line.set_markersize(size / 3) 1291 1300 else: 1292 1301 self.subplot.set_ylabel(label, color=color) -
plottools/src/danse/common/plottools/TextDialog.py
r26b0a7c rf80236f 24 24 self.SetWindowVariant(variant=FONT_VARIANT) 25 25 # default 26 self.family = FAMILY[ 0]26 self.family = FAMILY[1] 27 27 self.size = SIZE[3] 28 28 self.style = STYLE[0] 29 29 self.weight = WEIGHT[1] 30 30 self.color = COLOR[0] 31 self.tick_label = True31 self.tick_label = False 32 32 #Dialog interface 33 33 vbox = wx.BoxSizer(wx.VERTICAL) … … 54 54 self.tick_label_check = wx.CheckBox(self, -1, 55 55 '', (10, 10)) 56 self.tick_label_check.SetValue( True)56 self.tick_label_check.SetValue(False) 57 57 self.tick_label_check.SetToolTipString("Apply to tick label too.") 58 58 wx.EVT_CHECKBOX(self, self.tick_label_check.GetId(), … … 82 82 self.fontFamily.SetMinSize((_BOX_WIDTH, -1)) 83 83 self._set_family_list() 84 self.fontFamily.SetSelection( 0)84 self.fontFamily.SetSelection(1) 85 85 self.fontFamily.SetToolTipString("Font family of the text.") 86 86 #font weight
Note: See TracChangeset
for help on using the changeset viewer.