Some change have been introduce in matplotlib? Because I used this sequence=
=20
before and it was working. I'm a little bit surprise by the fact that the r=
gb=20
sequence must be three numbers between 0 and 1. Generally rgb sequence are=
=20
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 actua=
l=20
matplotlib definition but in this case an explicit error message must be=20
given to tell that RGB color doesn't respect the general convention and mus=
t=20
be between 0 and 1=20
Regards,
N.
Le mardi 11 juillet 2006 04:43, Eric Firing a =E9crit=A0:
> 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
>
> hu...@ya... 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 =3D pylab.plot([1,2],[2,3],'o')
> > pylab.setp(p,markerfacecolor=3D(120,120,120),markersize=3D5,markeredgew=
idth=3D1
> >.,zorder=3D50)
> >
> > 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.
> >
> >
> > -----------------------------------------------------------------------=
=2D-
> > Using Tomcat but need to do more? Need to support web services, securit=
y?
> > 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=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > 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=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|