>>>>> "Tony" == Tony Mannucci <[EMAIL PROTECTED]> writes:
Tony> Let me know if this is not the appropriate way to report
Tony> bugs. Here is the example code:
This is a good way to report them, but none of these are bugs :-)
Tony> import numpy as N import matplotlib matplotlib.use("TkAgg")
Tony> import pylab as PLT
Tony> x = N.array([1.,2.,3.,4.,5.]) y =
Tony> N.array([2.2,3.3,4.4,5.5,6.6]) PLT.figure(1) PLT.clf()
Tony> PLT.hold(False) PLT.plot(x,y,'+',color='k',linestyle='--')
Tony> ***Symbol is blue (wrong), line is dashed and black (right)
A single line object can have a linestyle and a marker and their
colors are independent. The "color" kwarg applies to the linestyle.
The markerfacecolor and markeredgecolor kwargs control the marker
color.
Tony> PLT.plot(x,y,'+',color=[0,0,0],linestyle='--')
Tony> ***Same error as above
Same explanation.
Tony> PLT.plot(x,y,'+r',linestyle='--')
Tony> ***Works correctly (symbol and line are red)
The format color string applies to the marker or line -- this is
different than the kwargs.
Tony> PLT.axis([0.0,6.0,0.0,7.0]) PLT.xlabel('X
Tony> Label',fontsize=18) PLT.ylabel('Y label',fontsize=18)
Tony> PLT.title('TITLE',fontsize=24) PLT.hold(True)
Tony> PLT.plot(x+0.1,y-0.2,'+r')
Tony> ***ERROR: resets axis limits (is this an error? Note hold is
Tony> on)
"hold" controls whether multiple lines are plotted on the same axes or
whether the axes is cleared with successive plots. To disable
autoscaling, use
ax.set_autoscale_on(False)
Tony> PLT.axis([0.0,6.0,0.0,7.0])
Tony> ***Restores manual axes limits
As it should.
Thanks,
JDH
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users