#9793: Make plot1d function
-------------------------------------------------+--------------------------
       Reporter:  kcrisman                       |         Owner:  jason, was
           Type:  enhancement                    |        Status:  new       
       Priority:  minor                          |     Milestone:  sage-5.3  
      Component:  graphics                       |    Resolution:            
       Keywords:  one-dimension, plot, graphics  |   Work issues:            
Report Upstream:  N/A                            |     Reviewers:            
        Authors:                                 |     Merged in:            
   Dependencies:                                 |      Stopgaps:            
-------------------------------------------------+--------------------------

Comment (by kcrisman):

 Here is a contribution to this issue from user "jaia" at
 [http://ask.sagemath.org/question/1586/function-for-1-d-plotting this
 ask.sagemath.org question]:
 {{{
 def plot_1d(xmin, xmax, ymin=-1, ymax=1):
 p=plot((ymax+ymin)/2, (xmin, xmax), color="black", axes=False) +
 point((0,ymax), color="white") + point((0,ymin), color="white")
 return p
 }}}
 used
 {{{
 plot_1d(-1,1200,-1,1) + point((0,0), color="black", size=20) + text("0",
 (0,-0.05), color="black") + point((1000,0), color="black", size=20) +
 text("K", (1000,-0.05), color="black") + arrow((700, 0), (1000,0)) +
 arrow((0, 0), (300,0)) + arrow((350, 0), (650,0)) + arrow((1100, 0),
 (1000,0))
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9793#comment:4>
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.

Reply via email to