#18646: Explicitly say that arguments to Graph.plot() are forwarded
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: positive_review
Type: | Milestone: sage-6.8
enhancement | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers: Jori Mäntysalo
theory | Work issues:
Keywords: | Commit:
Authors: | f3a61f76ab8f28c6e50bd66cfaf392c61b421d6d
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
public/18646 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by slabbe):
Replying to [comment:5 ncohen]:
> Nonono. The function is `Graphics.show`, not `Graph.show`. And in
particular `Graph.plot` forwards its arguments to `Graphics.show`. This is
why, despite having no specific code in `Graph.plot` to handle "axis",
that argument is accepted. Because `Graphics.show` knows what to make of
it.
Ok, I see what you meant. But, I still think the last commit it a good
idea to avoid confusion.
So if I understand correctly, that "forward" is done indirectly in the
ugly line 910 in the method {{{def plot(self, **kwds):}}} of file
graph_plot.py:
{{{
#!python
G._set_extra_kwds(Graphics._extract_kwds_for_show(options))
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18646#comment:8>
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/d/optout.