Hi Jason, Thanks for the help! Which parameter is it that tells the axis to be on the left? My example is:
rsa = line([(2000,952),(2005,1149),(2010,1369),(2015,1613),(2020,1881), (2025,2174),(2030,2493),(2035,2840),(2040,3214)],rgbcolor="green") ecc = line([(2000,132),(2005,139),(2010,146),(2015,154),(2020,161), (2025,169),(2030,176),(2035,184),(2040,191)],rgbcolor="red") (rsa+ecc).save('bild.png',xmin=2000,xmax=2040,axes_labels=['year','key length in bits'],figsize=5) Here I'd like the axis to be on the left. Can you tell me how to do this here? Thanks! Maike On Sep 25, 1:18 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > Jason Grout wrote: > > Maike wrote: > >> Hello, > > >> I've tried looking at all the plot options in the documentation, but I > >> can't find how to do the following. Maybe someone can help... > > >> * control over the scaling of the y-axis. I can choose xmin and xmax, > >> but the range of the y-axis is always chosen automatically. > >> * control over where the y-axis is located. It sometimes just ends up > >> right smack in the middle of the graph and looks dumb, I'd prefer for > >> it to be on the left. > > > For these two, use the "ymin" and "ymax" options in show when you show > > the plot. Something like: > > > sage: plot(sin(x), (x, -pi, pi)).show(ymin=-1, ymax=3) > > Sorry, I misread your second point. The following example puts the > y-axis on the left: > > sage: plot(sin(x), (x, 0, pi)).show(ymin=-1,ymax=-3) > > Does that help? > > Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---