Also, is it possible to show the arrows on the axis? like this:
http://www.homeschoolmath.net/blog/few-complex-numbers.gif
I'm using latest version of sage
cheers
renato
Search ticks and axes in plot? and copy/paste the examples :
plot(sin(pi*x), (x, -8, 8), ticks=[[],[]], axes=false)
+ arrow((-8,0),(8,0), color="black")
+ arrow((0,-1),(0,1), color="black")
If you want a grid add a function as
def grid (xmin, xmax, ymin, ymax) :
linesYcst = add (line ([(xmin, k), (xmax, k)]) for k in [ceil
(ymin).. floor(ymax)])
linesXcst = add (line ([(k, ymin), (k, ymax)]) for k in [ceil
(xmin).. floor(xmax)])
return linesXcst+linesYcst
read the help about line2d? and find the right options !
Then add to your (almost) last plot : ....+ grid ("the right area")
F.
We also have gridlines implemented:
http://sagemath.org/doc/reference/sage/plot/plot.html#sage.plot.plot.Graphics.show
(see the gridline bullet point, or search the examples for "Add grid
lines at the major ticks of the axes." and the few examples following that)
Jason