[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

[Matplotlib-users] Updating a plot as data is acquired

2009-05-16 Thread amrbekhit
Hello, I am trying to write an application that measures data from an external device and then displays the data on a graph, updating the graph when new measurements arrive. Searching the web has led to matplotlib and so I've been having a go at using that for my program. After searching around

Re: [Matplotlib-users] Updating a plot as data is acquired

2009-05-16 Thread John Hunter
On Sat, May 16, 2009 at 6:57 AM, amrbekhit amrbek...@gmail.com wrote: Hello, I am trying to write an application that measures data from an external device and then displays the data on a graph, updating the graph when new measurements arrive. Searching the web has led to matplotlib and so

[Matplotlib-users] Updating a plot

2009-04-10 Thread Pellegrini Eric
Hello everybody, I would like to create a plot from which I set the x data later. The method set_xdata works but the corresponding plot displays the initial x limits. Is it possible to update the plot automatically in order that the displayed plot has x limits corresponding to the newly set x

Re: [Matplotlib-users] Updating a plot

2009-04-10 Thread Andrew Straw
Pellegrini Eric wrote: Hello everybody, I would like to create a plot from which I set the x data later. The method set_xdata works but the corresponding plot displays the initial x limits. Is it possible to update the plot automatically in order that the displayed plot has x limits