Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Controlling tick marks in plots

I'm trying to do a plot and control the tick marks. I'd like to have tick marks on the horizontal axis only at 3 and 6. Here is the code I'm using:

p=plot(f(v),(v,2,12),detect_poles='show',ymin=-2,ymax=50) p+=text('vc',(3,-1.5),color='black') p+=text('2vc',(6,-1.5),color='black') show(p)

I cannot seem to get the "tick" option to be recognized here by sage. Can anyone help?

Controlling tick marks in plots

I'm trying to do a plot and control the tick marks. I'd like to have tick marks on the horizontal axis only at 3 and 6. Here is the code I'm using:

p=plot(f(v),(v,2,12),detect_poles='show',ymin=-2,ymax=50) p+=text('vc',(3,-1.5),color='black') p+=text('2vc',(6,-1.5),color='black') show(p)

I cannot seem to get the "tick" option to be recognized here by sage. Can anyone help?

Note: I am running Sage 4.4. I am starting to think this is fixed in 4.6. Is that correct?

click to hide/show revision 3
No.3 Revision

Controlling tick marks in plots

I'm trying to do a plot and control the tick marks. I'd like to have tick marks on the horizontal axis only at 3 and 6. Here is the code I'm using:

p=plot(f(v),(v,2,12),detect_poles='show',ymin=-2,ymax=50)
p+=text('vc',(3,-1.5),color='black')
p+=text('2vc',(6,-1.5),color='black')
show(p)

show(p)

I cannot seem to get the "tick" option to be recognized here by sage. Can anyone help?

Note: I am running Sage 4.4. I am starting to think this is fixed in 4.6. Is that correct?