Hi Ondrej, If I was in your shoes, the first thing I'd do is emit your data to plot as a json object and then plot that data using javascript with one of the libraries you've listed. Then, after gaining some familiarity with Python->json->javascript I'd think about how such an MPL backend might work. A usecase I could imagine is some Django app that uses MPL to plot stuff into a javascript canvas element complete with zooming and so on.
I think there are a lot of open questions in this domain... For example, presumably one doesn't want the server involved when the client browser zooms. But then if you implement something that allows the client browser to zoom without the server MPL process, you're no longer using the normal MPL callback system. So, interactivity would probably be different than in the traditional backends. You could also start with the svg backend, as browsers do render svg. -Andrew Ondrej Certik wrote: > Hi, > > could someone please point me to the latest status of the web gui? > > I am now in LLNL and I don't have a root access to my computer > (running rhel5), and there is no Tk, nor Tkinter Python modules. I > have installed femhub, so I have the whole python stack, but I don't > have any gui. Mpl can save figures to a file, so at least something. > But I am missing the zoom feature. > > I found the following cool libraries: > > http://www.sencha.com/ > http://raphaeljs.com/ > http://g.raphaeljs.com/ > > that work perfectly in my browser (FF3). So I wondered how hard it > would be to use them as an mpl backend? All I need, I think, is just > simple plotting, and zoom (+pan). > > I could adapt for example: > > lib/matplotlib/backends/backend_tkagg.py > > but it seems quite involved. Is there some simple thing, that would > "just work" for me, that I could start adapting for the web gui? I > would imagine that show() would launch a web server and tell the user > to go to localhost:8080 or something and then the gui would be in the > browser. The browser can even be opened automatically. > > Ondrej > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel