Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm not quite sure I understand. For (1), do you want the x=0 and y=0 lines turned off? Then axes=False should do it. And rightarrow seems to work for me:

p = list_plot([(r,Pabrf(Ratio=r).n()) for r in srange(-1, 1, 0.1, include_endpoint=True)], plotjoined=True, frame=true)
p.show(ymin=0, axes_labels=('$\\Omega_0/\\omega_{\\mathrm{nut}}$', "$P_{a \\rightarrow b}$"), axes=False)

gives

simple test plot

Is something like this what you're after or do we need to try harder? I may have copied the function itself wrong, so you don't need to worry about the blue line. :^)

I also second the recommendation that working with matplotlib/pylab directly is probably easier when you want to do a lot of configuring. (To tell the truth, I'm having trouble getting Sage to save plots the way they look on my screen.)

I'm not quite sure I understand. For (1), do you want the x=0 and y=0 lines turned off? Then axes=False should do it. And for (2), rightarrow seems to work for me:

p = list_plot([(r,Pabrf(Ratio=r).n()) for r in srange(-1, 1, 0.1, include_endpoint=True)], plotjoined=True, frame=true)
p.show(ymin=0, axes_labels=('$\\Omega_0/\\omega_{\\mathrm{nut}}$', "$P_{a \\rightarrow b}$"), axes=False)

gives

simple test plot

Is something like this what you're after or do we need to try harder? I may have copied the function itself wrong, so you don't need to worry about the blue line. :^)

I also second the recommendation that working with matplotlib/pylab directly is probably easier when you want to do a lot of configuring. (To tell the truth, I'm having trouble getting Sage to save plots the way they look on my screen.)