Changeset 175
- Timestamp:
- 03/21/09 08:19:39 (17 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
chavier/app.py (modified) (1 diff)
-
pycha/chart.py (modified) (3 diffs)
-
pycha/pie.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/chavier/app.py
r173 r175 57 57 labelFontSize=int, 58 58 labelWidth=float, 59 tickFont=str, 60 tickFontSize=int, 59 61 x=dict( 60 62 hide=bool, -
trunk/pycha/chart.py
r173 r175 350 350 cx.stroke() 351 351 352 cx.select_font_face(self.options.axis.tickFont, 353 cairo.FONT_SLANT_NORMAL, 354 cairo.FONT_WEIGHT_NORMAL) 355 cx.set_font_size(self.options.axis.tickFontSize) 356 352 357 label = unicode(tick[1]) 353 358 extents = cx.text_extents(label) … … 384 389 cx.close_path() 385 390 cx.stroke() 391 392 cx.select_font_face(self.options.axis.tickFont, 393 cairo.FONT_SLANT_NORMAL, 394 cairo.FONT_WEIGHT_NORMAL) 395 cx.set_font_size(self.options.axis.tickFontSize) 386 396 387 397 label = unicode(tick[1]) … … 638 648 labelFontSize=9, 639 649 labelWidth=50.0, 650 tickFont='Tahoma', 651 tickFontSize=9, 640 652 x=Option( 641 653 hide=False, -
trunk/pycha/pie.py
r169 r175 133 133 lookup = dict([(slice.xval, slice) for slice in self.slices]) 134 134 135 136 cx.select_font_face(self.options.axis.tickFont, 137 cairo.FONT_SLANT_NORMAL, 138 cairo.FONT_WEIGHT_NORMAL) 139 cx.set_font_size(self.options.axis.tickFontSize) 140 135 141 cx.set_source_rgb(*hex2rgb(self.options.axis.labelColor)) 136 142
