Re: [Matplotlib-users] Hold-related strangeness, looks like a bug.

2007-03-08 Thread Fernando Perez
Hi Simon, On 3/8/07, Simon Wood <[EMAIL PROTECTED]> wrote: > On 3/8/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > today at work we ran into some odd behavior, all of which seems to be > > triggered by calling hold(). I'm using a fresh SVN build from this > > afternoon. > > >

Re: [Matplotlib-users] Hold-related strangeness, looks like a bug.

2007-03-08 Thread Simon Wood
On 3/8/07, Fernando Perez <[EMAIL PROTECTED]> wrote: Hi all, today at work we ran into some odd behavior, all of which seems to be triggered by calling hold(). I'm using a fresh SVN build from this afternoon. Here's the first example demonstrating the problem, it's best to run this in a fresh

[Matplotlib-users] Hold-related strangeness, looks like a bug.

2007-03-08 Thread Fernando Perez
Hi all, today at work we ran into some odd behavior, all of which seems to be triggered by calling hold(). I'm using a fresh SVN build from this afternoon. Here's the first example demonstrating the problem, it's best to run this in a fresh pylab shell or from the command line, since I suspect i

Re: [Matplotlib-users] Nonlinear colormap ?

2007-03-08 Thread Eric Firing
Uwe Schmitt wrote: > Hi, > > I would like to plot contours with a nonlinear mapping from values to > color as follows: > >-1 -> red > 0 -> white or green or black >+1 -> red > > How can I achieve this ? See examples/contourf_demo.py. The relevant part is this: # Now make a

Re: [Matplotlib-users] bug with spy(D)?

2007-03-08 Thread Eric Firing
John Pye wrote: > Hi Eric > > I tried the new spy function under Windows and it seemed to work OK. A > great leap forward, actually, given the problems I had been seeing. > Merging the spy functions was a good idea (does it work ok for very very > large, very sparse matrices?) I don't know any re

[Matplotlib-users] Bug in aspect ratio for matshow() when using colorbar()

2007-03-08 Thread Suresh Pillai
If one inserts a colorbar after using matshow, then the matrix plot's aspect ratio is incorrect altered. Here are 2 cases to compare import pylab matrix = pylab.rand(30,30) 1) matshow() before colorbar() pylab.matshow(matrix) pylab.colorbar() pylab.show() The matrix plot is squished in the x-

Re: [Matplotlib-users] Nonlinear colormap ?

2007-03-08 Thread Ken McIvor
Uwe, I don't know the answer to your question, but yesterday Rob Hetland sent out and email entitled "Creating a non-linear colormap." that includes example code. That might help you get started. Ken - Take Surveys. Ear

[Matplotlib-users] Nonlinear colormap ?

2007-03-08 Thread Uwe Schmitt
Hi, I would like to plot contours with a nonlinear mapping from values to color as follows: -1 -> red 0 -> white or green or black +1 -> red How can I achieve this ? Greetings, Uwe - Take Surveys. Earn

[Matplotlib-users] pylab: figimage crashes

2007-03-08 Thread Uwe Schmitt
Hi, I have a problem. The following script crashes: from pylab import * a=arange(1500).reshape(50,30) figure() figimage(a) show() Python says: Traceback (most recent call last): File "crash.py", line 5, in ? figimage(a) File "c:\Python24\lib\site-packages\matplot

[Matplotlib-users] Opensuse RPMs

2007-03-08 Thread Marcel Oliver
Dear all: I am trying the numpy-scipy-matplotlib stack on Opensuse 10.2 from http://repos.opensuse.org/science/openSUSE_10.2/i586/ No success with matplotlib, however. Two problems: - No plot windows open at all - When using TeX ouput, ghostscript segfaults: sh: line 1: 11319 Segmentatio