Re: [Matplotlib-users] Manually limiting value ranges

2009-01-13 Thread Christian Lerrahn
it. :) Cheers, Christian On Wed, 7 Jan 2009 10:21:30 +1100 Christian Lerrahn li...@penpal4u.net wrote: Hi, the code given works for me in principle. If I run ipython without the -pylab flag and do an import * from pylab at the start instead, I can run this code and it runs fine

[Matplotlib-users] Manually limiting value ranges

2008-12-29 Thread Christian Lerrahn
Hi, I've been trying to do this for a while but just can't get it to work. :( There are 2 things I want to do. 1. I want to limit the value range in a line plot from matplotlib.pyplot.plot(). I thought that clip_box would do exactly that but setting something like [[-1,1],[-5,5]] or the like

[Matplotlib-users] Bogus colour gradients in imshow()

2008-03-17 Thread Christian Lerrahn
Hi, I'm plotting some 2D grid data using imshow(). However, one of my test problems involves a Gaussian peak in the center of my grid. For some strange reason this Gaussian looks like 5 distinct peaks. It looks like the values are only set at the centers of my grid cells and then the colour

[Matplotlib-users] Contours on imshow with limited range

2007-12-03 Thread Christian Lerrahn
Hi, I limit the value range of my imshow using vmin and vmax. As I like the way the contour levels are usually coloured by contour, I would like to just restrict them to the same range but have matplotlib use the default spacing and colouring. In other words, I want to avoid setting levels

[Matplotlib-users] How to get rid of 'Warning: overflow encountered in short_scalars'

2007-10-23 Thread Christian Lerrahn
Hi, I sometimes get the error Warning: overflow encountered in short_scalars when I'm trying to plot certain data. When I searched a bit what I could find on this problem, I came across http://projects.scipy.org/pipermail/numpy-discussion/2007-May/027933.html At least in one case where I had

Re: [Matplotlib-users] Contours and imshow plots have offset

2007-10-23 Thread Christian Lerrahn
On Thu, 18 Oct 2007 21:10:24 -1000 Eric Firing [EMAIL PROTECTED] wrote: Christian Lerrahn wrote: Hi, when I plot 2D data with imshow() and then add a contour plot, my contours have an offset in relation to the data. At the same time there is white space at the edge of my plot, so I

[Matplotlib-users] Contours and imshow plots have offset

2007-10-18 Thread Christian Lerrahn
Hi, when I plot 2D data with imshow() and then add a contour plot, my contours have an offset in relation to the data. At the same time there is white space at the edge of my plot, so I assume that it is the imshow plot that actually gets shifted. I'm new to Python and matplotlib, so I don't