Re: [Matplotlib-users] color problems in scatter plot

2011-10-06 Thread Michael Castleton
= plc.LinearSegmentedColormap.from_list('Colormap name', ['r', 'g', > 'b'], > N=len(locs_un) ) > for n, i in enumerate(locs_un): > # Reverse the comments here to use the mcm module 'hsv' colormap. > ax.plot(dat

Re: [Matplotlib-users] color problems in scatter plot

2011-10-04 Thread Michael Castleton
John, I'll give this method a try also. Thanks for the ideas! Mike John Ladasky-3 wrote: > > On Mon, 2011-10-03 at 12:49 -0700, Michael Castleton wrote: >> Hello, >> I am using Matplotlib 1.0.0 in Python 2.6. >> I am trying to plot time series data of unique IDs

Re: [Matplotlib-users] color problems in scatter plot

2011-10-04 Thread Michael Castleton
Ryan, I should clarify my color issue. Your code is smart enough to generate however many colors are needed but I want to make sure the colors are all unique. Thanks again! Mike Mike, sorry to send this twice... I should have sent it to the list as well... ___ Mike,

Re: [Matplotlib-users] color problems in scatter plot

2011-10-04 Thread Michael Castleton
Ryan, I have tried setting c=locations (after converting to float) and gotten inconsistent results. For a dataset with ~32,000 points it seems to work, but a 2nd dataset of ~100,000 points colors everything the same even though there are at least 10 locations. Your second idea works nicely and I'm

[Matplotlib-users] color problems in scatter plot

2011-10-03 Thread Michael Castleton
Hello, I am using Matplotlib 1.0.0 in Python 2.6. I am trying to plot time series data of unique IDs and color the points based on location. Each data point has a unique ID value, a date value, and a location value. The unique IDs and date values are plotting fine but I am unable to control the co