On Mon, Jan 31, 2011 at 12:48 AM, Francois Maltey <fmal...@nerim.fr> wrote:
> Renato a écrit : > > Hello, I can't understand how the ticks option works in plot()... I >> want to have no ticks or labels on the axis. >> >> 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 >> >> > > 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. > > > many thanks renato -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org