Maurizio wrote:
>>> Another example is with matplotlib. As I can read somewhere on the
>>> web, there are different opinions about using the SAGE plot
>>> capabilities rather than this external package.
>> Sage's 2d plotting just uses matplotlib, which is a standard package
>> included in SAge.  Matplotlib's pylab interface is very good
>> for visualizing numerical data coming from experimentation.
>> Sage's default "plot" and related functions (which uses matplotlib
>> behind the scenes) are very good for visualizing mathematically
>> defined functions and objects.
> 
> I see, but what about flexibility with data visualization, for example
> for bode plots? I would have assumed that, even without the bode plot
> directly implemented, I should have found the semilogaritmic or loglog
> plot as a built-in feature. On the contrary, I always have to import
> matplotlib explicitly and work with it, so that I can't show directly
> the results, but save them manually to a png and show them.

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 at http://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to