Re: [Matplotlib-users] inconsistency in LineCollection

2007-10-31 Thread John Hunter
On 10/31/07, Mark Bakker <[EMAIL PROTECTED]> wrote: > This works fine, as apparantly colors='r' is interpreted as a sequence. > This does not work, however: > > ax.add_collection( LineCollection( [[(0,0),(1,1)]], colors='r', linewidths=2 > ) ) > draw() > > Now I get an error: TypeError: CXX: type

[Matplotlib-users] inconsistency in LineCollection

2007-10-31 Thread Mark Bakker
Hello - I got confused about specifying colors and linewidths for LineCollections. I think it would be helpful if the docstrings explicitly state that they should be sequences. I know, they do in some way, but it i Maybe we should even check this on input, as the error message you get when you don