Maurizio wrote: > would it be so much additional work to put the results in a form that > a javascript or any other html-related language could digest? > > I mean, I am still in the phase of getting information, but I don't > see how is it possible that Jmol makes possible to render complex 3d > structures, and make zoom and pan possible (obviously not like zooming > and panning an image) and not possible for 2d plots
We just need a javascript or java applet like Jmol to do 2d plots. It definitely is possible. We just haven't done anything with it yet. It'd be nice if matplotlib had a "canvas" backend like gnuplot just introduced (see http://skuld.bmsc.washington.edu/~merritt/gnuplot/canvas_demos/). Then we could keep the advanced plotting functionality of matplotlib, but still have interactive goodness in the notebook. > > Could you explain better what do you mean by "finding the extent of a > matplotlib object"? Given a matplotlib object, I need to return the bounding box of the object. Basically, I need to find the minimum and maximum x and y values of the object. I thought I knew how to do this (see the patch), but it doesn't seem to work on different types of matplotlib objects. I imagine that a simple post to the matplotlib-users list is what is needed, I just haven't made time to do it yet. Jason > > thanks > >> I worked on a function that would wrap any matplotlib plot as a Sage >> Graphics object. The idea was that you could do whatever you wanted in >> matplotlib, put your plot in a variable (say plt) and then just do >> >> Graphics(plt) >> >> and you would have a Sage graphics object that you could then combine >> with any other Sage graphics object, show, etc. The mostly-finished >> code is athttp://trac.sagemath.org/sage_trac/ticket/5128. I'm having >> problems finding the extent of an arbitrary matplotlib object (in the >> get_minmax_data function), though, so it's at a standstill until me or >> someone else can figure that out. If you're interested in working on >> it, post a note to the trac ticket and go for it! >> >> 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 -~----------~----~----~----~------~----~------~--~---