#13891: Default parameters for Graph.plot() and Graph.show()
---------------------------------+------------------------------------------
       Reporter:  ncohen         |         Owner:  jason, ncohen, rlm           
         
           Type:  enhancement    |        Status:  closed                       
         
       Priority:  major          |     Milestone:  sage-5.7                     
         
      Component:  graph theory   |    Resolution:  fixed                        
         
       Keywords:                 |   Work issues:                               
         
Report Upstream:  N/A            |     Reviewers:  Punarbasu Purkayastha, 
Sébastien Labbé
        Authors:  Nathann Cohen  |     Merged in:  sage-5.7.beta3               
         
   Dependencies:  #13862         |      Stopgaps:                               
         
---------------------------------+------------------------------------------

Comment (by was):

 This has annoyed the hell out of me about 100 times in the last month:
 {{{
 g.plot(svg=True)
 127
 True
 /usr/local/sage/sage-5.10.beta3/local/lib/python2.7/site-
 packages/sage/graphs/generic_graph.py:14263: DeprecationWarning: You
 provided svg as an argument to a function which has always silently
 ignored its inputs. This method may soon be updated so that the method
 raises an exception instead of this warning, which will break your code :
 to be on the safe side, update it !
 See http://trac.sagemath.org/13891 for details.
   return GraphPlot(graph=self, options=options)
 }}}

 I strongly disagree with this deprecation.  It is an extremely useful
 feature that the plotting functions hold their arguments, then pass the
 unused arguments on to show, just like the do (by design!) in 3d graphics,
 and did do (by design!) for many years in 2d graphics.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13891#comment:56>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to