[Matplotlib-users] twinx and twiny cannot remove yticklabels

2015-11-03 Thread Evan Mason
I want to plot contours on top of an image, using twinx and twiny for the contour coordinates. I don't want to show the x- and yticklabels for the contour coordinates. I find I can remove the xticklabels, but not the yticklabels. There is mention of this problem here: http://stackoverflow.com/qu

[Matplotlib-users] passing multiple path arguments to make_compound_path

2014-11-27 Thread Evan Mason
Hi, I have several path objects that I want to join together with make_compound_path. For example, with p1 and p2: In [136]: p1 Out[136]: Path(array([[-29.85721973, -30.], [-29.84752676, -29.77715877], [-29.88734508, -29.55431755], [-29.97470553, -29.33147632],

[Matplotlib-users] matplotlib.dates date within a loop

2011-03-16 Thread Evan Mason
Hi, I get unexpected behaviour using the script below. xticks only appear in the 4th subplot. If the lines marked ### are moved out of the loop (and edited so that they are constants), then xticks do appear on each subplot. Is this a bug or am I missing something? I am using matplotlib 1.1.0svn

Re: [Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Evan Mason
On Tue, Sep 29, 2009 at 7:12 PM, Jeff Whitaker wrote: > Evan Mason wrote: >> >> Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). >> >> >> > > Evan:  I believe Ryan May just fixed this yesterday - so if you update > b

[Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Evan Mason
Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). It seems that plt.clim(vmin,vmax) no longer works with Basemap objects. Here is an example, which before used to work: In [92]: M.pcolormesh(x, y, a_var,cmap=cm) Out[92]: In [93]: plt.clim(-10,10) ---

Re: [Matplotlib-users] mlab.load and non-numeric characters

2009-05-10 Thread Evan Mason
Thanks for that: def ifmissing(x): try: return float(x) except: return np.nan works just fine. -Evan On Sun, May 10, 2009 at 6:59 AM, Ryan May wrote: > > > On Sat, May 9, 2009 at 8:35 PM, Evan Mason wrote: > >> Hi, I want to use mlab.load to load in some data:

[Matplotlib-users] mlab.load and non-numeric characters

2009-05-09 Thread Evan Mason
Hi, I want to use mlab.load to load in some data: 1) 2004/02/27 21:51:00 1 2553.51 2553.51 -99.N 3.217 2) 2004/02/27 22:01:00 2 2553.47 2553.47 -99.N 3.217 3) 2004/02/27 22:10:59 3 2553.45 2553.45 -99.000

[Matplotlib-users] clabel and rotation

2009-05-08 Thread Evan Mason
Hi, would it be possible to add a keyword to clabel to optionally switch off the angle fix in contour.py lines 384+? # Fix angle so text is never upside-down if rotation > 90: rotation = rotation - 180.0 if rotation < -90: rotation = 180.0 + rotation Some

[Matplotlib-users] arrows on contour plots

2009-04-15 Thread Evan Mason
Hi, I want to put arrows onto the contours of a contour plot, the direction will depend on whether the contour is positive/negative. Before I try to do it myself, has anybody written something to do that? Thanks, Evan --

Re: [Matplotlib-users] path and bbox

2008-09-09 Thread Evan Mason
On Tue, Sep 9, 2008 at 2:02 AM, Eric Firing <[EMAIL PROTECTED]> wrote: > Evan Mason wrote: > >> Hi, wonder if anyone can help me with path and bbox. I have a set of >> ocean drifter tracks and I want to know if they pass through a particular >> boxed area. This

[Matplotlib-users] path and bbox

2008-09-08 Thread Evan Mason
Hi, wonder if anyone can help me with path and bbox. I have a set of ocean drifter tracks and I want to know if they pass through a particular boxed area. This is straightforward to do but I wanted to try to do it with matplotlib.transforms and matplotlib.path, which look well-suited to this kind

[Matplotlib-users] savefig, too many open files

2008-08-15 Thread Evan Mason
Hi I have a script to plot and save a sequence of png images which I am using to prepare animations. This works fine, but I got the following error when preparing a particularly large number of files: --- record: 1015 --- record: 1016 /usr/lib/python2.5/site-packages/matplotlib/backends/backend

Re: [Matplotlib-users] basemap and omerc

2008-02-14 Thread Evan Mason
On Wed, Feb 13, 2008 at 2:16 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Evan Mason wrote: > > Hi Jeff > > > > Here are the corners: > > > > lon_corners = N.array([-4.09300764,-35.76003475,-43.72330207, > > -12.05627497]) > > lat_cor

Re: [Matplotlib-users] basemap and omerc

2008-02-13 Thread Evan Mason
On Feb 13, 2008 10:48 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Evan Mason wrote: > > Thanks for the replies. The map you produced, Jeff, looks as it > > should. However, I am trying to make an ocean model grid, and so I > > require two 2d arrays of lon and lat,

Re: [Matplotlib-users] basemap and omerc

2008-02-13 Thread Evan Mason
27;c.') -Evan On Feb 13, 2008 5:14 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Evan Mason wrote: > > Hi, I am having some problems using the oblique mercator projection in > > basemap. I want to define a rectangular orthogonal grid, rotated > > clockwise by

[Matplotlib-users] basemap and omerc

2008-02-12 Thread Evan Mason
Hi, I am having some problems using the oblique mercator projection in basemap. I want to define a rectangular orthogonal grid, rotated clockwise by about 13 degrees. I want to define grid cells of size, say, about 20x20 km. The script I have so far is below. The problem is that at some point (

Re: [Matplotlib-users] basemap-0.9.8 failure, linux

2007-12-28 Thread Evan Mason
Thank you Jeff. Setting LD_LIBRARY_PATH works fine as a quick test, though that leads me to the "ImportError: No module named pkg_resources" problem that the other recent posters had. I'll either try setuptools or wait for 0.9.9 to come out - will it be long? -Evan --

[Matplotlib-users] basemap-0.9.8 failure, linux

2007-12-28 Thread Evan Mason
Hi all, Just updated basemap from 0.9.4 to 0.9.8 on Mandriva Linux 2008. I also installed basemap-data-fullres-0.9.7. I've noticed there's a couple of recent posts about problems (on Macs) with 0.9.8, the solution being to install setuptools until 0.9.9 comes along; the problem I have is similar

[Matplotlib-users] mpl 0.90.1 segmentation fault

2007-10-15 Thread Evan Mason
Hi, when I run the simple_plot.py script in the mpl FAQ I get a seg fault as follows: [EMAIL PROTECTED] ~]$ python simple_plot.py --verbose-helpful matplotlib data path /usr/lib/python2.5/site-packages/matplotlib/mpl-data $HOME=/home/emason CONFIGDIR=/home/emason/.matplotlib loaded rc file /home/e

Re: [Matplotlib-users] installation problems mpl 0.90.1 on Mandriva 2007.1

2007-10-15 Thread Evan Mason
> matplotlib-0.90.1]#It seems to trip up when expecting a file 'arrayobject.h' in the /Numeric directory; indeed that file is not there, though Numeric is on the path. Numeric came as part of the Mandriva install. > I'd be grateful for any help with this, thanks in advance, Evan Ok, just in cas

[Matplotlib-users] installation problems mpl 0.90.1 on Mandriva 2007.1

2007-10-12 Thread Evan Mason
Hi, I am trying to install matplotlib 0.90.1. I have python 2.5 on a fresh Mandriva 2007.1 installation. I have installed numpy and scipy - I think these are ok, they both import and the tests were largely successful. I believe I have all the background packages installed - - matplotlib core

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
t the virtues of being explicit in your program even when you don't have to... Eric Evan Mason wrote: > Hi Eric, the following lines below will show this. Interestingly, the > correct (or, at least, what I want) behaviour results from using pcolor, > but not with contourf. &g

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
r show how to fix the script, or I can use the script to help me track down the mpl bug, if that is the problem. Eric Evan Mason wrote: > Hi Eric > > I am using matplotlib-0.90.0. > > I am making 2 contourf subplots of temperature values which have similar > but not equal rang

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Hi Eric I am using matplotlib-0.90.0. I am making 2 contourf subplots of temperature values which have similar but not equal ranges. In subplot1 the range is 15-25; in subplot2 it is 16 to 24. I use clim, giving it the max and min values obtained from a comparison of subplot1 and 2; i.e., I us

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Sorry, I realise that my example in my original post doesn't quite make sense. My data range is 17 to 23. I set clim to be clim([15, 25]). I then want the colorbar limits to be the same as clim, 15 to 25. The questions remains the same, which is how to set the range for colorbar. Thanks, Evan

[Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Hi I want to set the limits of my colorbar to something different from that of my plot. For example I have a contourf plot where I set the colour limits to be, say: clim([15, 25]) But I want the limits of the colorbar to be 10 and 30. I suspect this is something to do with mappable and vmin a

Re: [Matplotlib-users] second x axis

2007-02-15 Thread Evan Mason
> How do I make a second x-axis? I am looking for something like "twinx" (a "twiny" would be perfect...)Thanks, Evan > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'l

[Matplotlib-users] second x axis

2007-02-15 Thread Evan Mason
How do I make a second x-axis? I am looking for something like "twinx" (a "twiny" would be perfect...) Thanks, Evan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get th

[Matplotlib-users] contour and basemap

2006-12-31 Thread Evan Mason
In the mpl basemap 'test.py' script, I want to add some contours to the mercator projection map (test #3). Just below line 83 (ie, below the 'im = imshow..' command I added the line: m.contour(topodat,[-1000, -2000]) This returns: /home/evan/downloads/basemap-0.9.4/examples/test.py 82 # p