[Matplotlib-users] numpy-1.0b-compatible release?

2006-08-22 Thread Sven Schreiber
Hi all, I'm using recently changed numpy features, so I have not been able to use matplotlib in a while, hoping for a release compatible with numpy 1.0beta. I guess I could also install Numeric and use that for matplotlib in the meantime, as a workaround. But from posts on the devel list it seems

[Matplotlib-users] Zooming errors/bugs

2006-08-22 Thread Jon Roadley-Battin
Hi,I have come across a couple of bugs when zooming into a plot1) if you goto draw a box (to where you are going to zoom) it will zoom in finebut if while drawing the box you release the mouse button BUT continue to move the mouse the zoom does not function (when mouse stops) and a black box is dra

Re: [Matplotlib-users] numpy-1.0b-compatible release?

2006-08-22 Thread Bill Baxter
array.tolist() can be used as a temporary workaround.i.e.  tack .tolist() onto the end of any numpy.array arguments to matplotlib functions.--bbOn 8/22/06, Sven Schreiber <[EMAIL PROTECTED]> wrote: Hi all,I'm using recently changed numpy features, so I have not been able touse matplotlib in a whil

Re: [Matplotlib-users] 3d Plotting

2006-08-22 Thread rich kowalczyk
> The colors come from the current colormap. You can go all out and > make your own colormap and color based on index using your map. I > don't know how to do that off the top of my head though. The colors may come from the colormap, but how do they get assigned to areas of the plot itself? T

[Matplotlib-users] quiver2

2006-08-22 Thread Flavio Coelho
Hi,I am tring to figure out how to use the c argument to the quiver2 function.I want to be able to color my arrows proportionally to their size. I have tried this and it doesn' t work as I imagined: c = sqrt((array(u)-array(x))**2+(array(v)-array(y))**2)quiver2(x,y,u,v,c)the docstring on quiver2 is

Re: [Matplotlib-users] extend for colorbar

2006-08-22 Thread James Boyle
Thanks, Eric Ok, I ran the image_masked.py and all went OK BUT if I change line 34 of image_masked.py: im = imshow(Zm, interpolation='bilinear', cmap=palette, norm = colors.normalize(vmin = -1.0, vmax = 1.0, clip = False), origin='lower', extent=[-3,3,-3,3]) to im = contourf(Zm,cm

Re: [Matplotlib-users] extend for colorbar

2006-08-22 Thread Philip Austin
James Boyle writes: > Thanks, Eric > > to > > im = contourf(Zm,cmap=palette) > > I do not get the over/under pointers on the end of the colorbar. > > Does this feature not work with contourf - Or am I doing something > wrong. Here's a code segment that works for me: vmin,vmax=(

[Matplotlib-users] axes.toggle_log_lineary resets user-defined ticks

2006-08-22 Thread Philip Austin
I was a little suprised to learn that axes.toggle_log_lineary() overwrites user-supplied tick locators and formatters. My naive assumption was that it would "toggle" only the semilog property and leave other attributes unchanged. Perhaps this could be mentioned in the docstring? regards, Phil

Re: [Matplotlib-users] extend for colorbar

2006-08-22 Thread Eric Firing
Phil, Jim, Thanks. I need to add a suitable example for the contourf case, because as you have discovered it is a little different from all the other mappable cases: colorbar takes its cue from the contourf arguments so as to be consistent with the way the contourf plot was made. There is a

Re: [Matplotlib-users] quiver2

2006-08-22 Thread Eric Firing
Flavio Coelho wrote: > Hi, > > I am tring to figure out how to use the c argument to the quiver2 function. > > I want to be able to color my arrows proportionally to their size. > > I have tried this and it doesn' t work as I imagined: > > c = sqrt((array(u)-array(x))**2+(array(v)-array(y))**2)

Re: [Matplotlib-users] quiver2

2006-08-22 Thread Flavio Coelho
Thanks Eric,in fact it depends on if x,y are 0 or not. But I got it to work it now. thanks,FlávioOn 8/22/06, Eric Firing < [EMAIL PROTECTED]> wrote:Flavio Coelho wrote:> Hi,>> I am tring to figure out how to use the c argument to the quiver2 function. >> I want to be able to color my arrows proport

Re: [Matplotlib-users] quiver2

2006-08-22 Thread Eric Firing
Flavio, One more point: please do not use quiver2 directly. Instead, use quiver, which will call quiver2 unless it finds a keyword argument that exists only in the old version of quiver. The name quiver2 is used only temporarily to provide this compatibility, which will be removed in a futur

[Matplotlib-users] Canvas change events?

2006-08-22 Thread Richard Harvey Chapman
Briefly, is there a way to get a callback in the event that the canvas has been redrawn (e.g. from a zoom or pan)? matplotlib 0.86.2 python 2.4.1 wxPython 2.6.2.1 Mac OS X.4.7 I draw a circle at a certain point. I let the user drag that point to a new location. However, if the plot is redraw

[Matplotlib-users] [Mac OS 10.4.7, Python 2.4.3] Problem using plot_date

2006-08-22 Thread David Goldsmith
First, sorry for the long email. I'm having a segmentation fault problem trying to use plot_date, somewhere deep in matplotlib. After giving up trying to figure out what was going wrong from within my "real" code, I wrote a "minimal" sample to try to reproduce (or not) the problem; here it is:

Re: [Matplotlib-users] Getting started with bar charts

2006-08-22 Thread Jouni K Seppänen
[Again copying to matplotlib-users; maybe the main developers can comment on whether these shortcomings in the getp/setp interface should be fixed.] Hi Derek, > It does seem as those these settings affect the top and bottom of > the graph - I was wondering if it was possible to show tickmar