How do I make the ticks go from 0 to 100?

I have a dataset where the values range from 20 to 90, but I want the y
coordinates to go from 0 to 100.
Also, how can I draw a highlight (colored line) across the chart at 30, and
another at 70?

···


View this message in context: http://www.nabble.com/How-do-I-make-the-ticks-go-from-0-to-100--tp16427710p16427710.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

carlwenrich wrote:

I have a dataset where the values range from 20 to 90, but I want the y
coordinates to go from 0 to 100.
  

import pylab

pylab.ylim(0,100)

Also, how can I draw a highlight (colored line) across the chart at 30, and
another at 70?
  
pylab.axhline(30,color='r')
pylab.axhline(70.color='r')

HTH,

-Jeff

···

--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory