Maurizio wrote: > Michael, > I understand your comments, but my desire to include something like > Flot comes from the need of having dynamic zooming and panning, and > tooltips and something else like that. Is this possible with > matplotlib? I didn't find the way to do it.
As I understand it, matplotlib can do those sorts of things with an interactive backend (i.e., wxwindows, gtk, qt, etc.). However, none of those work with the web-based notebook, but the pieces are there. It would be *cool* if someone would write the necessary javascript/canvas/html code to make those tools available in a "canvas" backend. Again, something like the gnuplot canvas backend. You might be able to even reuse code from the gnuplot canvas backend. That said, it may be less effort to make an optional flot spkg. However, for advanced plotting and deep integration with Sage, as you are seeing, leveraging the power of matplotlib by just writing another backend may be the best way to go in the end. I've looked at writing a matplotlib backend, and it didn't look extremely difficult. There are examples in the backends/ directory, and it looks like you can get a minimal backend up and running by just writing a few functions. You're doing some great work on getting Flot working too! I think exploring the options is what is most valuable at this point. I just think that the matplotlib backend is one of the most valuable options that can be explored. > Today we (Kenny and me) have a working alpha. It is unfinished, but we > think that these added capabilities show the possible advantages, if [snip] > > We hope to send you some example ASAP, so that you can judge yourself > and the decide what to do. I look forward to seeing what you have! Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---