#13009: Add blank lines for a couple plots in reference manual
------------------------------------+---------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: enhancement | Status: new
Priority: trivial | Milestone: sage-5.1
Component: graphics | Resolution:
Keywords: beginner, sd40.5 | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
------------------------------------+---------------------------------------
Comment (by kini):
Oh, is that why there are so many extra `::` in Sage docstrings? I
wondered about that.
Why not just wrap them with show() or put them in a single "line" by
wrapping them with parentheses and semicolons?
{{{
show(plot(sin(pi*x), (x, -8, 8))) # Labels not so helpful
show(plot(sin(pi*x), (x, -8, 8), ticks=2)) # Multiples of 2
show(plot(sin(pi*x), (x, -8, 8), ticks=[[-7,-3,0,3,7],[-1/2,0,1/2]])) #
Your choices
show(plot(sin(pi*x), (x, -8, 8), ticks=[[],[]])) # No ticks at all!
}}}
or
{{{
( plot(sin(pi*x), (x, -8, 8)) ; # Labels not so helpful
plot(sin(pi*x), (x, -8, 8), ticks=2) ; # Multiples of 2
plot(sin(pi*x), (x, -8, 8), ticks=[[-7,-3,0,3,7],[-1/2,0,1/2]]) ; # Your
choices
plot(sin(pi*x), (x, -8, 8), ticks=[[],[]]) ) # No ticks at all!
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13009#comment:1>
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].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.