#9793: Make plot1d function
---------------------------+------------------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.7.1
Component: graphics | Keywords: one-dimension, plot, graphics
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
---------------------------+------------------------------------------------
Comment(by kcrisman):
From a participant in a workshop:
{{{
Say, if I want to show the multiples of 5 on the number line. How should I
do that in SAGE?
For example: points([(5*n,0) for n in [-3..3]]) gives me the y-axis which
I don't want
}}}
jason says, regarding possible solutions,
{{{
I would just turn axes off and make your own line:
points([(5*n,0) for n in [-3..3]],axes=False)+line((-3,0),(3,0))
You'd have to do your own ticks, though. You might also set ymin and ymax
to something small (ymin=-.01,ymax=.01)
It would be pretty straightforward for us to make an option that turns off
axes selectively. I could imagine an interface like:
axes=False # turn off all axes
axes=True # turn on all axes
axes=[True,False] # turn on horizontal axis, turn off vertical axis
or maybe it should be:
axes='horizontal' # turn on only horizontal axis
axes='vertical' # turn on only vertical axis.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9793#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 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.