#20530: Add pictures to hyperbolic_geodesic.py
---------------------------------+------------------------
Reporter: jhonrubia6 | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: sage-7.2
Component: documentation | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------+------------------------
Comment (by vdelecroix):
The semantic of `plot` and `show` are different:
- `plot` should return a graphic object
- `show` does actually shows the object (the way it is shown depends on
the Sage mode used, i.e. console, notebook, etc)
You can have a look at graphs
{{{
sage: G = graphs.PetersenGraph()
sage: P = G.plot() # a plot object
sage: type(P)
<class 'sage.plot.graphics.Graphics'>
sage: R = P.show() # returns None
Launched png viewer for Graphics object consisting of 26 graphics
primitives
sage: R is None
True
}}}
And note that a graphics object as `P` above as a `plot` method (that
return itself) and a `show` method that actually shows the graphics.
--
Ticket URL: <http://trac.sagemath.org/ticket/20530#comment:2>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.