[Matplotlib-users] subplot2grid weird for non-square shapes

2010-08-27 Thread Erik Tollerud
If been playing around with the new Gridspec and subplot2grid stuff, and it's pretty cool... one thing is confusing me though: It doesn't seem to make any sense if the grid is non-square. For example, suppose a 2x6 grid, which I will number like so: 1 3 5 7 9 11 2 4 6 8 10 12 I want ax1 to take

[Matplotlib-users] Cygwin Install

2010-08-27 Thread Adam Gustafson
I found a web page in which someone has done the horrible task of figuring out how the hell you compile in Cygwin. Details below: http://innuendopoly.org/arch/matplotlib-cygwin In short, the Cygwin compile runs into TONS of errors as is, and it seems the matplotlib developers aren't really suppo

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Eric Firing
On 08/27/2010 05:43 PM, Benjamin Root wrote: > On Fri, Aug 27, 2010 at 10:17 PM, Chiara Caronna > mailto:chiaracaro...@hotmail.com>> wrote: > > Ok, it is a backend issue: > I checked and I was using Qt4Agg > as soon as I changed to TkAgg the script worked fine... > still is this nor

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Benjamin Root
On Fri, Aug 27, 2010 at 10:17 PM, Chiara Caronna wrote: > Ok, it is a backend issue: > I checked and I was using Qt4Agg > as soon as I changed to TkAgg the script worked fine... > still is this normal or is it a bug? > thanks for your suggestion and help! > Chiara > > I suspect that it might have

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Chiara Caronna
Ok, it is a backend issue: I checked and I was using Qt4Agg as soon as I changed to TkAgg the script worked fine... still is this normal or is it a bug? thanks for your suggestion and help! Chiara From: chiaracaro...@hotmail.com To: ben.r...@ou.edu Date: Sat, 28 Aug 2010 03:01:54 + CC: matplo

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Chiara Caronna
I think I am using TkAgg but I am not sure, how can I check it? From: ben.r...@ou.edu Date: Fri, 27 Aug 2010 21:50:19 -0500 Subject: Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0 To: chiaracaro...@hotmail.com CC: matplotlib-use

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Benjamin Root
On Fri, Aug 27, 2010 at 9:26 PM, Chiara Caronna wrote: > Hi all, > I have a script to update a plot in real time. It was working fine with > matplotlib 0.99.1.1 but it doesn't work anymore with the new version. > > Here is the script: > > import numpy as n > import pylab as p > > x=n.arange(10) >

[Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Chiara Caronna
Hi all, I have a script to update a plot in real time. It was working fine with matplotlib 0.99.1.1 but it doesn't work anymore with the new version. Here is the script: import numpy as n import pylab as p x=n.arange(10) y=n.random.randn(10) p.ion() fig=p.figure(1) ax=fig.add_subplot(111) lin

Re: [Matplotlib-users] change font name (under certain font.family)

2010-08-27 Thread Yi Shang
Hi Ben, Thanks for the reply. I did try to match font.family and font.$family and I am using matplotlib 0.99.0. I did find something interesting... For testing, I tried only using font.family line, (deleting font.$family line). I got reasonable font for "monospace", "fantasy" "sans-serif" and "ser

Re: [Matplotlib-users] change font name (under certain font.family)

2010-08-27 Thread Benjamin Root
On Fri, Aug 27, 2010 at 2:33 PM, Yi Shang wrote: > Dear all, > I was trying to change all figure fonts to Arial, or Times, but without any > luck. > below is the section I modify the property. > > *** > from numpy

[Matplotlib-users] change font name (under certain font.family)

2010-08-27 Thread Yi Shang
Dear all, I was trying to change all figure fonts to Arial, or Times, but without any luck. below is the section I modify the property. *** from numpy import * from matplotlib import pyplot as plt import pylab para

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Jeff Whitaker
On 8/27/10 12:05 PM, Brian Larsen wrote: Thanks, that a step, but how do I tell matplotlib where to then put this map? It needs to be on the current figure with the current axes but between 0 and 1 in radius. Imagine this plot but the black circle instead contains a map of the earth as seen

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Ryan May
On Fri, Aug 27, 2010 at 1:16 PM, Eric Firing wrote: > On 08/27/2010 07:15 AM, Ryan May wrote: >> You can make the circle this way, specifying everything in axes coordinates: >> >> cp = patches.Circle((.5,.5),.025, transform=ax.transAxes) >> >> However, this puts the circle in the same spot in axes

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Eric Firing
On 08/27/2010 07:15 AM, Ryan May wrote: > On Thu, Aug 26, 2010 at 2:24 PM, Ben Edwards wrote: >> Hello, I've used matplotlib for a while but never had cause to ask a >> question until now. I am trying to add a patch to an axis, but would like >> the patch to remain the same size when, interactivel

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Brian Larsen
Thanks, that a step, but how do I tell matplotlib where to then put this map? It needs to be on the current figure with the current axes but between 0 and 1 in radius. Imagine this plot but the black circle instead contains a map of the earth as seen from space in the right viewing geometry. h

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Jeff Whitaker
On 8/27/10 11:39 AM, Brian Larsen wrote: Ben, I have but no where in there do I see (or at least understand) how to draw a map on top of a current figure with set bounds in data space... Cheers, Brian Brian: Something like this perhaps? from pylab import * from mpl_toolkits.basemap impo

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Aman Thakral
Here is an example of the general usage for an orthographic projection. def genMap(fig, ax, llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat): fig.sca(ax) m = Basemap(resolution='i',projection='ortho',lon_0=(urcrnrlon+llcrnrlon)/2,lat_0=(urcrnrlat+llcrnrlat)/2) m.drawcoastlines()

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Brian Larsen
Ben, I have but no where in there do I see (or at least understand) how to draw a map on top of a current figure with set bounds in data space... Cheers, Brian On Aug 27, 2010, at 11:24 AM, Benjamin Root wrote: > On Fri, Aug 27, 2010 at 12:11 PM, Brian Larsen wrote: > Hello all, > > I a

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Jeff Whitaker
On 8/27/10 11:24 AM, Benjamin Root wrote: On Fri, Aug 27, 2010 at 12:11 PM, Brian Larsen > wrote: Hello all, I am plotting satellite orbit files and it looks really nice to plot an Earth in the center with the continents on it to orient people to where

Re: [Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Benjamin Root
On Fri, Aug 27, 2010 at 12:11 PM, Brian Larsen wrote: > Hello all, > > I am plotting satellite orbit files and it looks really nice to plot an > Earth in the center with the continents on it to orient people to where the > spacecraft is. Does anyway know how to do this? All I seem to be able to

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Ryan May
On Thu, Aug 26, 2010 at 2:24 PM, Ben Edwards wrote: > Hello, I've used matplotlib for a while but never had cause to ask a > question until now. I am trying to add a patch to an axis, but would like > the patch to remain the same size when, interactively, I resize the > resulting figure. I am usin

[Matplotlib-users] Map displayed on a plot

2010-08-27 Thread Brian Larsen
Hello all, I am plotting satellite orbit files and it looks really nice to plot an Earth in the center with the continents on it to orient people to where the spacecraft is. Does anyway know how to do this? All I seem to be able to do is create a whole globe as the figure. In this simple ex

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Ben Edwards
That doesn't quite work the way I want. I guess a good example of the behavior I am looking for is what 'scatter' does. It seems that regardless of the size of the figure the points stay the same size. I would use scatter but would like to have access to the individual patches later to modify them.

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Benjamin Root
On Thu, Aug 26, 2010 at 2:24 PM, Ben Edwards wrote: > Hello, I've used matplotlib for a while but never had cause to ask a > question until now. I am trying to add a patch to an axis, but would like > the patch to remain the same size when, interactively, I resize the > resulting figure. I am usi

Re: [Matplotlib-users] drawing triangle

2010-08-27 Thread Angus McMorland
On 27 August 2010 09:35, xyz wrote: > Hello, > I would like to draw the following triangle: > > A >/ \ > 5 / \ 5 > / \ > / \ >BC >4 > > How is it possible to draw the above triangle with Matplotlib and are > there any examples? > How

[Matplotlib-users] drawing triangle

2010-08-27 Thread xyz
Hello, I would like to draw the following triangle: A / \ 5 / \ 5 / \ / \ BC 4 How is it possible to draw the above triangle with Matplotlib and are there any examples? Than you in advance. --

Re: [Matplotlib-users] plotting an arrow outside of the plot does not work any more

2010-08-27 Thread Benjamin Root
On Fri, Aug 27, 2010 at 7:21 AM, Stan Schymanski wrote: > Dear all, > > I don't know which update it was that broke it, but this used to work: > > import numpy > import pylab > pylab.clf() > fig = pylab.figure(1,figsize=(8,5)) > ax = fig.add_subplot(111, autoscale_on=False, xlim=(-1,5), > ylim=(-4

[Matplotlib-users] plotting an arrow outside of the plot does not work any more

2010-08-27 Thread Stan Schymanski
Dear all, I don't know which update it was that broke it, but this used to work: import numpy import pylab pylab.clf() fig = pylab.figure(1,figsize=(8,5)) ax = fig.add_subplot(111, autoscale_on=False, xlim=(-1,5), ylim=(-4,3)) t = numpy.arange(0.0, 5.0, 0.01) s = numpy.cos(2*numpy.pi*t) line, =

Re: [Matplotlib-users] CMYK images

2010-08-27 Thread Michele De Stefano
Thanks a lot to all of you. First of all, I have to say that I agree with Benjamin Root. I'll try the tools some of you suggested (no problem in installing and trying, as soon as I can ... but it's good to know that there is a way to generate CMYK images using Python ... as I told it will be usef