Let me know if this is not the appropriate way to report bugs.

Here is the example code:

import numpy as N
import matplotlib
matplotlib.use("TkAgg")
import pylab as PLT

x = N.array([1.,2.,3.,4.,5.])
y = N.array([2.2,3.3,4.4,5.5,6.6])
PLT.figure(1)
PLT.clf()
PLT.hold(False)
PLT.plot(x,y,'+',color='k',linestyle='--')

***Symbol is blue (wrong), line is dashed and black (right)

PLT.plot(x,y,'+',color=[0,0,0],linestyle='--')

***Same error as above

PLT.plot(x,y,'+r',linestyle='--')

***Works correctly (symbol and line are red)

PLT.axis([0.0,6.0,0.0,7.0])
PLT.xlabel('X Label',fontsize=18)
PLT.ylabel('Y label',fontsize=18)
PLT.title('TITLE',fontsize=24)
PLT.hold(True)

PLT.plot(x+0.1,y-0.2,'+r')

***ERROR: resets axis limits (is this an error? Note hold is on)

PLT.axis([0.0,6.0,0.0,7.0])

***Restores manual axes limits

>>>  matplotlib.__version__
'0.87.2'
>>>  N.__version__
'0.9.6'

-Tony

-- 
Tony Mannucci
Supervisor, Ionospheric and Atmospheric Remote Sensing Group
  Mail-Stop 138-308,                     Tel > (818) 354-1699
  Jet Propulsion Laboratory,              Fax > (818) 393-5115
  California Institute of Technology,     Email > [EMAIL PROTECTED]
  4800 Oak Grove Drive,                   http://genesis.jpl.nasa.gov
  Pasadena, CA 91109

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to