[Matplotlib-users] Errorbar stays behind data

2011-04-11 Thread Martin Sparre
Dear Matplotlib-users, I am trying to plot some data as well as an errorbar. The problem is that the errorbar stays behind the data even though plt.errorbar(...) comes after plt.plot() in my code. Here is a simple code that produces the problem: http://dark-cosmology.dk/~sparre/example.py

Re: [Matplotlib-users] Errorbar stays behind data

2011-04-11 Thread Sebastian Berg
Hey, not sure about which values are good to use (there is an example in the gallery about it), but do the first plot command for example with zorder=1 keyword argument, and the errorbar with zorder=2, and voila you got what you want. Regards, Sebastian On Mon, 2011-04-11 at 14:49 +0200,

Re: [Matplotlib-users] Errorbar stays behind data

2011-04-11 Thread Martin Sparre
Hey, Thank you! You solved my problem! Cheers Martin 2011/4/11 Sebastian Berg sebast...@sipsolutions.net: Hey, not sure about which values are good to use (there is an example in the gallery about it), but do the first plot command for example with zorder=1 keyword argument, and the

[Matplotlib-users] Lable lines

2011-04-11 Thread Tim Ã…berg
Hello! I have written a temprature logger using mathplotlib, i take in a list of multiple lines and print them out with Linecollection, i also supply a list of colors. Now to the the question, what is the best way (function) to explain to the user what line in the graph that correspond to

[Matplotlib-users] Qt4 Backend Gui Keycode patch

2011-04-11 Thread Tom Dimiduk
The arrow keys were not being correctly detected in the Qt4 backend of the matplotlib gui code, so I went in and hooked up keycodes for them. I haven't submitted patches before, but I thought this was worth passing on, so I have attached it. Is this something worth submitting? How would I

[Matplotlib-users] colormap extractions

2011-04-11 Thread fireproofboots
Hey, I'm using matplot lib to make surface and contour plots of different functions based on the set of data. (so I have a surface plot thats basically f1(x,y) and a contour thats f2(x,y)) I want to color the surface plot with the exact colors that are shown in the contour plot. (The surface

[Matplotlib-users] how to scale colorbar size to image size?

2011-04-11 Thread Jonathan Slavin
Hi all: I'm looking for a simple way to scale a color bar so it will be the same height as the image. It seems to work automatically if the image is at least as tall as it is wide, but when it is wider than tall it seems to scale to the width rather than height. (Shouldn't the default behavior

[Matplotlib-users] Memory leakage in matplotlib 1.0.1 with wx 2.8.11.0

2011-04-11 Thread Oren Gampel
I'm having a memory leakage using matplotlib 1.0.1 with wx 2.8.11.0, on windows XP. To reproduce, I used the sample from here: http://matplotlib.sourceforge.net/examples/animation/dynamic_image_wxagg2.htmland deleted most of the significant lines (see below). I only create a canvas but I don't