Some change have been introduce in matplotlib? Because I used this sequence before and it was working. I'm a little bit surprise by the fact that the rgb sequence must be three numbers between 0 and 1. Generally rgb sequence are between 0 and 255, aren't they?
http://homepage.mac.com/jakesan/DHP/page0/page3/page3.html And so my sequence is correct in this definition but yes false in the actual matplotlib definition but in this case an explicit error message must be given to tell that RGB color doesn't respect the general convention and must be between 0 and 1 Regards, N. Le mardi 11 juillet 2006 04:43, Eric Firing a écrit : > An rgb colorspec in matplotlib must be a sequence of three numbers > between zero and one, so the problem is that you are indeed giving an > invalid rgb arg. > > I think perhaps you grabbed an error message from a different instance > of this error; when I try it, I get an error message that correctly > gives the invalid arg that was supplied: > > ValueError: to_rgb: Invalid rgb arg "(120, 120, 120)" > to_rgb: Invalid rgb arg "(120, 120, 120)" > > > Eric > > [EMAIL PROTECTED] wrote: > > Hello, I have a problem with the svn version of matplotlib. I don't know > > when this problem appeared but it was working before. > > > > so the next script gave me an error message: > > > > > > import pylab > > > > p = pylab.plot([1,2],[2,3],'o') > > pylab.setp(p,markerfacecolor=(120,120,120),markersize=5,markeredgewidth=1 > >.,zorder=50) > > > > pylab.show() > > > > the main error message is: > > > > ValueError: to_rgb: Invalid rgb arg "(10.0, 10.0, 10.0)" > > to_rgb: Invalid rgb arg "(10.0, 10.0, 10.0)" > > > > but I don't understand why. > > > > N. > > > > > > ------------------------------------------------------------------------- > > 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 > > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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