Re: [matplotlib-devel] web gui
I'll take a look--but how do you handle interaction? Does it end up having to communicate back to the server? On Thu, Jun 17, 2010 at 2:09 AM, John Hunter wrote: > On Wed, Jun 16, 2010 at 6:33 PM, william ratcliff > wrote: > > I have a student here trying to make a webapp for data reduction. To add > > interactivity, we've been using the FLOT package, and may later consider > > protovis. We had thought about making a javascript backend for MPL, but > to > > just get something running, we went with FLOT for the time being...We're > > using EXTJS as the web framework (it's a bit heavy, but has a rich widget > > toolkit and documentation). We use Django on the backend and Orbited to > > deal with some communications between the browser and the server (for > > example if we get new data from an instrument and want to update it on > the > > server and update plots that are viewing that data..). Over the next > couple > > of weeks (with the arrival of another student), we will be working more > with > > the plotting aspect of the project (adding legends, zooming, etc). > Also, > > for other parts of the app, we're just using the HTML5 canvas...I'd be > happy > > to work on making the plotting addons as generic as possible so they can > be > > used outside of our problem domain. What I'm not sure is whether one > wants > > to truly use MPL as a backend, or rather to use the MPL philosophy of a > > javascript package. > > > If anyone is interested in working on an html5 backend, we have a > prototype here thanks to a GSOC applicant from last year > > http://bitbucket.org/sanxiyn/matplotlib-canvas/ > > JDH > -- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] web gui
Hi, Simon Ratcliffe (the other Ratcliff :-)) and myself are working on an MPL backend that uses the HTML5 Canvas element. It is nearly done and soon to be released, once we get permission from our employer to release it under an open-source license. It does zooming and pretty good animation as well. It also has no additional dependencies except for Matplotlib and currently runs on the latest HTML5-compliant browsers (Chrome 4+, Safari 5, IE9 when released, Firefox nightlies). Some idea of its functionality can be seen at http://genotrak.webfactional.com/mplh5canvas/. We will keep the list updated on its progress. Regards, Ludwig Schwardt -- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] web gui
On Thu, Jun 17, 2010 at 6:57 AM, Ludwig Schwardt wrote: > Hi, > > Simon Ratcliffe (the other Ratcliff :-)) and myself are working on an > MPL backend that uses the HTML5 Canvas element. It is nearly done and > soon to be released, once we get permission from our employer to > release it under an open-source license. It does zooming and pretty > good animation as well. It also has no additional dependencies except > for Matplotlib and currently runs on the latest HTML5-compliant > browsers (Chrome 4+, Safari 5, IE9 when released, Firefox nightlies). > > Some idea of its functionality can be seen at > http://genotrak.webfactional.com/mplh5canvas/. > > We will keep the list updated on its progress. That would be exactly what I need. Do you have any time frame for the release? The problem is that I need it right now. So I'll try to finish my own stuff today, so that I can at least work and then later improve it or switch to your stuff. 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 [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] web gui
How do you deal with interactivity? On Thu, Jun 17, 2010 at 9:57 AM, Ludwig Schwardt wrote: > Hi, > > Simon Ratcliffe (the other Ratcliff :-)) and myself are working on an > MPL backend that uses the HTML5 Canvas element. It is nearly done and > soon to be released, once we get permission from our employer to > release it under an open-source license. It does zooming and pretty > good animation as well. It also has no additional dependencies except > for Matplotlib and currently runs on the latest HTML5-compliant > browsers (Chrome 4+, Safari 5, IE9 when released, Firefox nightlies). > > Some idea of its functionality can be seen at > http://genotrak.webfactional.com/mplh5canvas/. > > We will keep the list updated on its progress. > > Regards, > Ludwig Schwardt > > > -- > 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] web gui
Hi Andrew! On Wed, Jun 16, 2010 at 3:45 PM, Andrew Straw wrote: > 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 Thanks for the encouraging email. So I have code up a simple prototype, using exactly the approach you suggested. Examples + screenshot available at: http://github.com/certik/jsplot (just scroll down with your browser, github nicely renders the README.rst). > 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. Yes, I use django and instead of mpl, I use the flotr library, that does zooming+plotting automatically. > > 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 Yes, in fact, I am not using MPL at all. > different than in the traditional backends. > > You could also start with the svg backend, as browsers do render svg. I wonder what to do now. I think I'll just emulate the MPL api, that's easy. Anyway, I can work finally. Thanks for the help! 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 [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
