=== modified file 'trunk/cairoplot.py' --- trunk/cairoplot.py 2009-04-03 00:39:10 +0000 +++ trunk/cairoplot.py 2009-06-29 07:57:00 +0000 @@ -479,15 +479,17 @@ self.context.set_font_size( 1.2 * self.font_size ) if self.titles[HORZ]: title_width,title_height = cr.text_extents(self.titles[HORZ])[2:4] - cr.move_to( self.dimensions[HORZ]/2 - title_width/2, self.borders[VERT] - title_height/2 ) + #cr.move_to( self.dimensions[HORZ]/2 - title_width/2, self.borders[VERT] - title_height/2 ) + cr.move_to( self.dimensions[HORZ]/2 - title_width/2, self.dimensions[VERT] - title_height/2 ) cr.show_text( self.titles[HORZ] ) if self.titles[VERT]: title_width,title_height = cr.text_extents(self.titles[VERT])[2:4] - cr.move_to( self.dimensions[HORZ] - self.borders[HORZ] + title_height/2, self.dimensions[VERT]/2 - title_width/2) + #cr.move_to( self.dimensions[HORZ] - self.borders[HORZ] + title_height/2, self.dimensions[VERT]/2 - title_width/2) + cr.move_to(title_height, self.dimensions[VERT]/2 - title_width/2) + cr.rotate( -math.pi/2 ) + cr.show_text( self.titles[VERT] ) cr.rotate( math.pi/2 ) - cr.show_text( self.titles[VERT] ) - cr.rotate( -math.pi/2 ) def render_grid(self): cr = self.context