[matplotlib-devel] Canvas HTML5 backend

2009-09-01 Thread Michael Thompson
Hi, I'm trying to work on the canvas javascript backend I found here [1]. I'm trying to add text but the canvas origin is at the top left, how can I transform the co-ordinates from the matplotlib to canvas? def draw_text(self, gc, x, y, s, prop, angle, ismath=False): ctx = self.ctx

Re: [matplotlib-devel] Canvas HTML5 backend

2009-09-01 Thread Michael Thompson
2009/9/1 John Hunter : > On Tue, Sep 1, 2009 at 10:32 AM, Michael Thompson wrote: >> Hi, >>  I'm trying to work on the canvas javascript backend I found here >> [1]. I'm trying to add text but the canvas origin is at the top left, >> how can I transform th

Re: [matplotlib-devel] Canvas HTML5 backend

2009-09-01 Thread Michael Thompson
2009/9/1 Jae-Joon Lee : > My understanding is that all the backends should use left-bottom > alignment. Text alignment in matplotlib is handled by mpl itself (not > by the backend), and for this to work, you have to define > get_text_width_height_descent method correctly. > > The real question is h