#13891: Default parameters for Graph.plot() and Graph.show()
---------------------------------+------------------------------------------
Reporter: ncohen | Owner: jason, ncohen, rlm
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.7
Component: graph theory | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Punarbasu Purkayastha,
Sébastien Labbé
Authors: Nathann Cohen | Merged in:
Dependencies: #13862 | Stopgaps:
---------------------------------+------------------------------------------
Comment (by ppurka):
Replying to [comment:19 slabbe]:
> For me, I think the confusion comes from the fact that using plot
actually opens the png. I like it if plot returns the Graphics object
without opening any png and show returning None and openning the png.
Actually, plot never returns the rendered graphics object. What happens
when you ''don't'' assign any variable to plot like
{{{
a = plot(...) # assigning the output of plot to variable a
}}}
then the `_repr_()` method of the `Graphics` class is called. This is
similar to the way the `print` function in Sage works. The `_repr_` method
then implicitly calls show and your graph gets rendered and displayed.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13891#comment:20>
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 post to this group, send email to [email protected].
To unsubscribe from 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.