Rounding issue when plotting

it works fine for me with this change:

def plotRocCurve(xCoord, yCoord):

     # TODO: solve rounding issues here
     #lines = pylab.plot(xCoord * 100, yCoord * 100, markersize = 2,
linewidth = 0.5)
     lines = pylab.plot(xCoord, yCoord, markersize = 2, linewidth = 0.5)
     pylab.xlabel('False positives', fontsize = 10)
     pylab.ylabel('True positives', fontsize = 10)
     # pylab.axis([0.0, 1.0, 0.0, 1.0])
     pylab.show()

I get values between 0.0 and 1.0

I'm running OS-X 10.4 Python2.5

numpy.__version__

'1.0.2'

matplotlib.__version__

'0.90.0'

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Mhm,

thank you for testing - it doesn’t work here unless I scale everthing. Bug?

Linux,

numpy.version
‘1.0.1’

matplotlib.version
‘0.87.3’