Hi everyone,
I am a new matplotlib user building a simple visualization tool.
I was having some issues with the graph not redrawing and I think I have
reduced it to a minimal case that doesn't work as expected for me.
In the example below one of the data elements is changed on every iteration
of
Hi,
How can I put the bottom axis on top (or on top AND on bottom) for a barh plot?
I'm trying to mimic this, made with gnuplot:
http://www.hep.wisc.edu/cms/comp/cmsprod/dCacheUserUsage.png
within matplotlib, and I've come close,
http://www.hep.wisc.edu/cms/comp/cmsprod/diskUserUsage.png
Hi Alastair,
I don't have clue why yours doesn't work.
however I changed the following line in the update function
data[20]=data[20]+0.5
to
data = np.random.randn(100)
And it started updating the display, with new data each update.
maybe changing a single point is not seen as a big enough chan
Maybe this thread is helpful.
http://old.nabble.com/Problem-with-simple-use-of-draw%28%29-in-animations-of-arrays-tt26174627.html#a26175190
I guess your code will work simply by calling "recache()" instead of set_ydata.
Regards,
-JJ
On Sat, Nov 28, 2009 at 4:50 AM, Alastair McKinley
wrote:
>
On Fri, Nov 27, 2009 at 5:17 PM, Mike Anderson wrote:
> Hi,
>
> How can I put the bottom axis on top (or on top AND on bottom) for a barh
> plot?
>
> I'm trying to mimic this, made with gnuplot:
>
> http://www.hep.wisc.edu/cms/comp/cmsprod/dCacheUserUsage.png
>
> within matplotlib, and I've come
I think the best solution to this problem is to have scroll bars in the figure
window if needed. Depending on the size of the figure (in physical units), the
size of the window containing the figure, and the zoom factor the scroll bars
would appear or disappear. This would require some modificat