[Matplotlib-users] Increase Padding Between Axis and Tick Labels

2010-09-13 Thread Ted Kord
Hi How do I increase the distance/padding between the tick labels (numbers) and the axis/axes? Ted -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and

[Matplotlib-users] Example: Howto plot a 3d cube/pyramid with plotsurface in matplotlib

2010-09-13 Thread Benjamin Kern
Since I haven't found an example, that shows howto plot in 3d a cube and pyramid, respectively, I wanted to show how I accomplished this without using vtk or mayavi. Unfortunately, it is a bit of an ugly hack, since as far as i know the plotsurface method cannot directly plot arrays with

Re: [Matplotlib-users] Increase Padding Between Axis and Tick Labels

2010-09-13 Thread Alan G Isaac
On 9/13/2010 6:46 AM, Ted Kord wrote: How do I increase the distance/padding between the tick labels (numbers) and the axis/axes? http://matplotlib.sourceforge.net/users/customizing.html#customizing-matplotlib (see the pad options) hth, Alan Isaac

[Matplotlib-users] Matplotlib wxpython gui template

2010-09-13 Thread Giancarlo Sportelli
Dear all, I have recently set up a simple tutorial on how to create gui applications with wxPython. One of the examples shows how to embed matplotlib plots in the application. It is only a recompilation of tutorials found on the web, including the matplotlib website, but the example is provided as

[Matplotlib-users] basemap and contouring

2010-09-13 Thread mdekauwe
Hi, If I set up a random example and plot it as a contour it seems to work fine...e.g. import matplotlb.pyplot as plt import numpy as np data2 = np.random.sample((17,16)) x = np.linspace(-1.74, -1.32, 16) y = np.linspace(15.15, 15.61, 17) X, Y = np.meshgrid(x, y) plt.contour(X, Y,

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Ryan May
On Mon, Sep 13, 2010 at 7:45 AM, mdekauwe mdeka...@gmail.com wrote: Hi, If I set up a random example and plot it as a contour it seems to work fine...e.g. import matplotlb.pyplot as plt import numpy as np data2 = np.random.sample((17,16)) x = np.linspace(-1.74, -1.32, 16) y =

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread mdekauwe
Hi, Well hopefully doing what you suggested correctly... numrows = 17 numcols = 16 ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74 m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon, llcrnrlat=llat, urcrnrlon=ulon, urcrnrlat=ulat,

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Benjamin Root
On Mon, Sep 13, 2010 at 8:21 AM, mdekauwe mdeka...@gmail.com wrote: Hi, Well hopefully doing what you suggested correctly... numrows = 17 numcols = 16 ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74 m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon,

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread mdekauwe
Hi, Well I tried... numrows = 17 numcols = 16 ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74 m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon, llcrnrlat=llat, urcrnrlon=ulon, urcrnrlat=ulat, resolution='c') data2 = np.random.sample((17,16)) print

Re: [Matplotlib-users] Increase Padding Between Axis and Tick Labels

2010-09-13 Thread Ted Kord
Thanks Alan. working nicely now. Ted On 13 September 2010 13:27, Alan G Isaac alan.is...@gmail.com wrote: On 9/13/2010 6:46 AM, Ted Kord wrote: How do I increase the distance/padding between the tick labels (numbers) and the axis/axes?

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Jeff Whitaker
On 9/13/10 8:02 AM, mdekauwe wrote: Hi, Well I tried... numrows = 17 numcols = 16 ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74 m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon, llcrnrlat=llat, urcrnrlon=ulon, urcrnrlat=ulat,

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread mdekauwe
Hi Jeff, many thanks that was exactly the problem! Martin Jeff Whitaker wrote: On 9/13/10 8:02 AM, mdekauwe wrote: Hi, Well I tried... numrows = 17 numcols = 16 ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74 m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon,

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Benjamin Root
On Mon, Sep 13, 2010 at 9:02 AM, mdekauwe mdeka...@gmail.com wrote: Hi, Well I tried... numrows = 17 numcols = 16 ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74 m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon, llcrnrlat=llat, urcrnrlon=ulon, urcrnrlat=ulat,

[Matplotlib-users] contour plot in semi-circle domain

2010-09-13 Thread Kenshi hibino
Hi! I want to use polar plot and write contour in semi-circle domain.But I can't do so. Here is a part of my code. - from pylab import * from scipy import * fig=figure(figsize=(10,10)) ax=fig.add_axes([0.1,0.1,0.8,0.8],polar=True) axis([0, pi, 0, 1])

[Matplotlib-users] Exclude colour from a colourbar

2010-09-13 Thread mdekauwe
Hi, I am setting a colourbar where I explictly set the tick intervals. However I would like to exclude the colour black from this colourbar. The reason for this is I would like to overplot some contour lines in black, so would like to make them stand out. An example...where I would like to

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Ryan May
On Mon, Sep 13, 2010 at 9:23 AM, Jeff Whitaker jsw...@fastmail.fm wrote: Martin: You need a meshgrid x,y  = np.meshgrid(x,y) just *before* (not after) px,py = m(x,y) so that x and y have the same shape as data2. Yeah, my bad. That's what I get for responding *before* coffee this

[Matplotlib-users] problem with MPL+py2exe (wx app needs qt?)

2010-09-13 Thread Carlos Grohmann
Hello all, I'm trying to build an executable distribution of an app I'm working using py2exe. After a lot of googling, I found what it seems to be a good combination of parameters, but when I try to run the .exe, it fails. The .log file shows me that the module backend_qt4agg wasn't found:

[Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Virgil Stokes
I have tried to produce a very simple plot with my recent installation of matplotlib (1.0.0 64-bit) and numpy (1.5.0 64-bit) using the following code (taken from the matplotlib tutorial material). *import matplotlib import numpy import matplotlib.pyplot as plt print matplotlib.__version__

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Jeff Whitaker
On 9/13/10 1:38 PM, Virgil Stokes wrote: I have tried to produce a very simple plot with my recent installation of matplotlib (1.0.0 64-bit) and numpy (1.5.0 64-bit) using the following code (taken from the matplotlib tutorial material). *import matplotlib import numpy import

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Benjamin Root
On Mon, Sep 13, 2010 at 2:38 PM, Virgil Stokes v...@it.uu.se wrote: I have tried to produce a very simple plot with my recent installation of matplotlib (1.0.0 64-bit) and numpy (1.5.0 64-bit) using the following code (taken from the matplotlib tutorial material). *import matplotlib import

Re: [Matplotlib-users] Exclude colour from a colourbar

2010-09-13 Thread mdekauwe
So far I have tried this... colourmap = cm.get_cmap(Greys_r) colourmap = colourmap._segmentdata # exclude 0, 0, 0...i.e. black from dictionary bvals = colourmap['blue'][1:] gvals = colourmap['green'][1:] rvals = colourmap['red'][1:] colourmap = { blue:bvals, green:gvals, red:rvals } colourmap

Re: [Matplotlib-users] weird behaviour in x axis

2010-09-13 Thread Benjamin Root
On Sat, Sep 11, 2010 at 6:57 PM, freekk fre...@gmail.com wrote: Im trying to do a very simple x vs y plot. Where the x values range between 3247 and 3256 and y between 0 and 1. This data is stored in data.dat. I plot it using the code below, the resulting plot is shown in the first

Re: [Matplotlib-users] colorbar questions ...

2010-09-13 Thread Benjamin Root
On Sat, Sep 11, 2010 at 2:10 PM, Oz Nahum nahu...@gmail.com wrote: Hi Everyone again, So, with the weekend comes some time to think and I found an answer to another question of mine. I know now how to remove xticks in colorbar, and I also know how to customize the widths of the lines in

Re: [Matplotlib-users] colorbar questions ...

2010-09-13 Thread Alan G Isaac
On 9/11/2010 3:10 PM, Oz Nahum wrote: my question, how to remove the axes around the colorbar, or at least changed the to be non-visible, still stands... Did you resolve this? Alan Isaac -- Start uncovering the many

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Virgil Stokes
On 2010-09-13 21:55, Benjamin Root wrote: On Mon, Sep 13, 2010 at 2:38 PM, Virgil Stokes v...@it.uu.se mailto:v...@it.uu.se wrote: I have tried to produce a very simple plot with my recent installation of matplotlib (1.0.0 64-bit) and numpy (1.5.0 64-bit) using the following code

Re: [Matplotlib-users] problem with MPL+py2exe (wx app needs qt?)

2010-09-13 Thread Carlos Grohmann
Many thanks, that helper. After some more problems with scipy, I got a working EXE. PyQt4 is still in the library, though. Eating almost 15Mb... Now all I have to do is to find out how to remove it.. cheers Carlos On Mon, Sep 13, 2010 at 18:47, Goyo goyod...@gmail.com wrote: 2010/9/13

Re: [Matplotlib-users] Exclude colour from a colourbar

2010-09-13 Thread mdekauwe
The solution incase anyone has a similar issue... data = np.random.randint(0,50,100*100).reshape(100, 100) m = Basemap(llcrnrlon=1.5, llcrnrlat=10.5, urcrnrlon=3.5, urcrnrlat=13.5, resolution='c', projection='cyl') fig = plt.figure(figsize=(8, 6)) ax = fig.add_axes([0.1,

Re: [Matplotlib-users] weird behaviour in x axis

2010-09-13 Thread Eric Firing
On 09/11/2010 11:12 AM, freekk wrote: Im trying to do a very simple x vs y plot. Where the x values range between 3247 and 3256 and y between 0 and 1. This data is stored in data.dat. I plot it using the code below, the resulting plot is shown in the first of the two plots below.

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Eric Firing
On 09/13/2010 12:08 PM, Virgil Stokes wrote: On 2010-09-13 21:55, Benjamin Root wrote: On Mon, Sep 13, 2010 at 2:38 PM, Virgil Stokes v...@it.uu.se mailto:v...@it.uu.se wrote: I have tried to produce a very simple plot with my recent installation of matplotlib (1.0.0 64-bit) and

Re: [Matplotlib-users] contour plot in semi-circle domain

2010-09-13 Thread Jae-Joon Lee
On Tue, Sep 14, 2010 at 12:09 AM, Kenshi hibino hib...@kugi.kyoto-u.ac.jp wrote: I thought that axis([0,pi,0,1]) make the writing domain semi-circle, but complete circle was written as domain. Does anyone know how I should write? With polar projection, it is not possible to make semi-circle

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Benjamin Root
On Mon, Sep 13, 2010 at 5:55 PM, Eric Firing efir...@hawaii.edu wrote: On 09/13/2010 12:08 PM, Virgil Stokes wrote: On 2010-09-13 21:55, Benjamin Root wrote: On Mon, Sep 13, 2010 at 2:38 PM, Virgil Stokes v...@it.uu.se mailto:v...@it.uu.se wrote: I have tried to produce a very simple

[Matplotlib-users] Fwd: Matplotlib-users Digest, Vol 52, Issue 26

2010-09-13 Thread jules hummon
Virgil The scheme illustrated below actually does work. Message: 5 Date: Mon, 13 Sep 2010 12:55:43 -1000 From: Eric Firing efir...@hawaii.edu Subject: Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit) To: matplotlib-users@lists.sourceforge.net Message-ID: 4c8eabef.30...@hawaii.edu