#14741: Fix implicit_plot()  so that we can save PDF's
----------------------------+-----------------------------------------------
       Reporter:  zimmerma  |         Owner:  jason, was  
           Type:  defect    |        Status:  needs_review
       Priority:  major     |     Milestone:  sage-5.11   
      Component:  graphics  |    Resolution:              
       Keywords:            |   Work issues:              
Report Upstream:  N/A       |     Reviewers:              
        Authors:            |     Merged in:              
   Dependencies:  #14664    |      Stopgaps:              
----------------------------+-----------------------------------------------

Comment (by vbraun):

 Its not just !RealLiteral that we have to worry about, somebody might
 compute linewidth from some numerical formula and hand down elements of
 other "real fields", like !RealField, !RealDoubleField, or
 !RealIntervalField. I would suggest a more relaxed check, something like
 {{{
 try:
     if v.parent() in Fields():
         v = float(v)
 except (AttributeError, TypeError):
     pass
 }}}
 since I'm pretty sure that floating-point numbers are the only Sage field
 that can be used as matplotlib parameters.

 Also, it would be nice to save a copy of options and restore them after
 the call to matplotlib.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14741#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to