Re: [Matplotlib-users] speeding up imshow

2008-04-12 Thread hjc520070
I just use blit on imshow map, and work properly. Maybe the following code will help you. def ontimer() canvas.restore_region(background) im.set_array(Z) ax.draw_artist(self.imList[i]) canvas.blit(ax.bbox) canvas.gui_repaint() -- View this message in context:

[Matplotlib-users] formatter on colorbar ???

2008-04-12 Thread hjc520070
I just want to set ["10%","20%"] on colorbar. However, failed again and again. Thank you for your help. The following code work properly. But when I set formatter = FixedFormatter(["10%","20%","30%","40%"]) No labels is shown on colorbar, Why? Is there any way to set the char "%" on colorbar

[Matplotlib-users] problems with plot and twinx

2008-04-12 Thread Zoho Vignochi
Hello: I am having some trouble with the syntax for plotting using matplotlib. I have appended a simple script which illustrates the problem. When I run the script the first plot command gives the expected results but the second, third and fourth plot commands do not. The second window does op

[Matplotlib-users] standard pyplot, numpy, scipy import syntax

2008-04-12 Thread Eric Firing
In reference to: http://news.gmane.org/find-root.php?message_id=%3cc7009a550804100055g6388b20ej520e85d8e679a55%40mail.gmail.com%3e A point was brought up that deserves wider dissemination and a correction, hence my posting to two lists. To reduce confusion among new users and to improve code rea

Re: [Matplotlib-users] integers -> colors

2008-04-12 Thread Eric Firing
Alan G Isaac wrote: > On Fri, 11 Apr 2008, Eric Firing apparently wrote: >> It sounds like what you want is a listed colormap with direct indexing >> using a NoNorm() instance as the norm: > >> cmap = mpl.colors.ListedColormap(['k', 'r', 'b']) >> norm = mpl.colors.NoNorm() >> matshow(aa, cmap=cma

[Matplotlib-users] saving PNG graphics on mac

2008-04-12 Thread Gideon Simpson
For some reason when trying to save in PNG format on OS X 10.5.2, a window pops up with the error: Matplotlib backend_wx error cannot return std::string from Unicode object This is with the simple scipy demo at http://www.scipy.org/Cookbook/OptimizationDemo1 Gideon Simpson Department of Ap

Re: [Matplotlib-users] anim.py questions

2008-04-12 Thread Alan G Isaac
On Sat, 12 Apr 2008, Alan G Isaac apparently wrote: > 1. Running anim.py at DOS prompt: it runs correctly until > the end: > Fatal Python error: PyEval_RestoreThread: NULL tstate OK, there is a simple fix to this: explicitly close the figure after the loop. I'll attach a fixed example file, i

Re: [Matplotlib-users] integers -> colors

2008-04-12 Thread Alan G Isaac
On Fri, 11 Apr 2008, Eric Firing apparently wrote: > It sounds like what you want is a listed colormap with direct indexing > using a NoNorm() instance as the norm: > cmap = mpl.colors.ListedColormap(['k', 'r', 'b']) > norm = mpl.colors.NoNorm() > matshow(aa, cmap=cmap, norm=norm, interpolation='

Re: [Matplotlib-users] Keeping several axis scalings in sync?

2008-04-12 Thread Norbert Nemec
Thanks! Perfect! I *love* matplotlib!!! Darren Dale wrote: > On Saturday 12 April 2008 7:19:32 am Norbert Nemec wrote: > >> Hi there, >> >> I often have the case that I want to view different data sets that share >> one axis. Imagine, for example, a time series of several different >> observabl

Re: [Matplotlib-users] Keeping several axis scalings in sync?

2008-04-12 Thread Darren Dale
On Saturday 12 April 2008 7:19:32 am Norbert Nemec wrote: > Hi there, > > I often have the case that I want to view different data sets that share > one axis. Imagine, for example, a time series of several different > observables. Since all observables may have different units, scales and > offsets

[Matplotlib-users] Keeping several axis scalings in sync?

2008-04-12 Thread Norbert Nemec
Hi there, I often have the case that I want to view different data sets that share one axis. Imagine, for example, a time series of several different observables. Since all observables may have different units, scales and offsets, I would want to display them as separate subplots that have the

[Matplotlib-users] ssh options

2008-04-12 Thread sa6113
what options we have for performing ssh (actually scp) on Windows and Linux from Python. Note that Linux has builtin ssh/scp, hence, pexpect should be a simple option, but to the best of my knowledge Windows does not anything. I would like to see a list of options on this. Would you please help