[Matplotlib-users] Updating Scatter Plot data

2010-07-07 Thread Aman Thakral
Hi, I was just curious if there is a way to update the data for a scatter plot similar to the set_data function for a axes.plot object? The reason is because I need to update a scatter plot at various zoom levels and colors/distribution of the circles will change with the zoom level. I looked

Re: [Matplotlib-users] Updating Scatter Plot data

2010-07-07 Thread Aman Thakral
I found one method to work around this. I iterate through the list of collections by accessing the axes.collections list and checking to see if the type of the collection is a CircleCollection. If so, I remove the item then redraw the collection for the appropriate zoom level. This doesn't