SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: <jas...@cr...> - 2009年02月24日 15:52:44
A few weeks ago, Fernando pointed out the new canvas backend to gnuplot:
http://skuld.bmsc.washington.edu/~merritt/gnuplot/canvas_demos/
See also:
http://www.nabble.com/New-terminal-driver%3A----set-term-canvas-tc21364389.html
Is there anyone that has worked on anything similar in matplotlib, i.e.,
a backend that would provide the interactive features of the GUI
backends in a web browser? Over in the Sage project, we are very
interested in something like this. While I can't volunteer at the
moment to write something like a canvas backend for matplotlib (or maybe
an interactive svg backend using javascript as well), I'm interested in
working on this as I have time. We also might have other people in the
Sage project interested in working on this, though we'd have to come up
to speed on implementing a matplotlib backend first.
Thanks,
Jason
From: John H. <jd...@gm...> - 2009年02月24日 16:12:14
On Tue, Feb 24, 2009 at 9:53 AM, <jas...@cr...> wrote:
> A few weeks ago, Fernando pointed out the new canvas backend to gnuplot:
>
> http://skuld.bmsc.washington.edu/~merritt/gnuplot/canvas_demos/
>
> See also:
> http://www.nabble.com/New-terminal-driver%3A----set-term-canvas-tc21364389.html
>
> Is there anyone that has worked on anything similar in matplotlib, i.e.,
> a backend that would provide the interactive features of the GUI
> backends in a web browser? Over in the Sage project, we are very
> interested in something like this. While I can't volunteer at the
> moment to write something like a canvas backend for matplotlib (or maybe
> an interactive svg backend using javascript as well), I'm interested in
> working on this as I have time. We also might have other people in the
> Sage project interested in working on this, though we'd have to come up
> to speed on implementing a matplotlib backend first.
The starting place for implementing a backend is
matplotlib/backends/backend_template.py which has instructions on how
to proceed, which methods need to be overridden, etc. Navigation
will be a bit trickier for an html5 backend because we have only
implemented navigation for traditional GUI canvases so far.
Navigation is enabled by connecting up the backend native events to
the backend_bases.FigureCanvasBase events (button_press_event, etc).
matplotlib.backends.backend_bases.NavigationToolbar2 glues everything
together, so you might need to hack a custom html NavigationToolbar2
subclass, as we do for each GUI backend. Should be interesting! I
don't think anyone on our side has done anything with this yet, though
Charlie Moad did do an AJAZ enabled Turbogears mpl backend at one
point...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /