[Matplotlib-users] Limits with errorbar

2011-02-01 Thread Francesco Montesano
Dear all, I am trying to make a plot with errorbars and upperlimits. I've found the following pylab example http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_limits.htmland it works fine both on a Mac OSX10.6 with python 2.6.1 and on Kubuntu 10.04 with python 2.6.5. I've tried

Re: [Matplotlib-users] plots do not scale to size

2011-02-01 Thread Paul Anton Letnes
On 10. juni 2009, at 14.53, John Hunter wrote: On Wed, Jun 10, 2009 at 1:58 AM, Paul Anton Letnespaul.anton.let...@gmail.com wrote: This _must_ be a bug. Consider the following: ## import matplotlib No it is not a bug -- mpl is doing what you tell it to do. Consider

[Matplotlib-users] hide labels

2011-02-01 Thread Francesco Montesano
Dear all, I'm producing a single figure with subplots arrange in a single columns. They all share the same x range but the y variable change from subplot to subplot In order have a nicer figure I hide the first and the last y label of each subplot in the following way ytl =

[Matplotlib-users] color missing value with contourf

2011-02-01 Thread Francesco Benincasa
Hi all, I'm using pygrads for plotting maps from netcdf files. I use the contourf method, but I'm not able to fill the region where there are no value (there is the missing value -999) with a color. It seems to ignore the set_bad method that I used to make the colormap. Any suggestions? Thank

[Matplotlib-users] latex ' (prime)

2011-02-01 Thread Jason Grout
Observe the following image: import pylab pylab.plot([0,1],[1,2],label=$\sigma'_0$) pylab.legend() pylab.savefig('test.png') Notice that the \prime introduced by the single quote in the legend is not raised above the \sigma, like it would be in TeX (i.e., in TeX, $\sigma'_0$ is equivalent to

Re: [Matplotlib-users] Limits with errorbar

2011-02-01 Thread Paul Ivanov
Francesco Montesano, on 2011-02-01 12:07, wrote: I attach a sample code which does not work. import numpy as np import matplotlib.pyplot as plt #create function to plot plus random error x = np.linspace(0,3,100) y = np.sin(x) err = np.random.random(100) plt.errorbar(x,y,

Re: [Matplotlib-users] latex ' (prime)

2011-02-01 Thread Darren Dale
On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout jason-s...@creativetrax.com wrote: Observe the following image: import pylab pylab.plot([0,1],[1,2],label=$\sigma'_0$) pylab.legend() pylab.savefig('test.png') Notice that the \prime introduced by the single quote in the legend is not raised

Re: [Matplotlib-users] latex ' (prime)

2011-02-01 Thread Jason Grout
On 2/1/11 11:40 AM, Darren Dale wrote: On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout jason-s...@creativetrax.com wrote: Observe the following image: import pylab pylab.plot([0,1],[1,2],label=$\sigma'_0$) pylab.legend() pylab.savefig('test.png') Notice that the \prime introduced by the

[Matplotlib-users] STOP!

2011-02-01 Thread Andraz Omahen
I just want you to stop sending massages to me form matplotlib. Thank you -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better

[Matplotlib-users] How to use pcolormesh with two masked arrays

2011-02-01 Thread Jeremy Conlin
I have two arrays and I want to plot the ratio of A/B when A=B or B/A when AB. I can create numpy masked arrays to find the result in these two instances, but I'm having trouble plotting them. Below I have a minimal example. I get a plot, but only from the second time I issue the pcolormesh

Re: [Matplotlib-users] color missing value with contourf

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 11:09 AM, Francesco Benincasa francesco.beninc...@bsc.es wrote: Hi all, I'm using pygrads for plotting maps from netcdf files. I use the contourf method, but I'm not able to fill the region where there are no value (there is the missing value -999) with a color. It

Re: [Matplotlib-users] How to use pcolormesh with two masked arrays

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 11:58 AM, Jeremy Conlin jlcon...@gmail.com wrote: I have two arrays and I want to plot the ratio of A/B when A=B or B/A when AB. I can create numpy masked arrays to find the result in these two instances, but I'm having trouble plotting them. Below I have a minimal

Re: [Matplotlib-users] STOP!

2011-02-01 Thread Michael Droettboom
You can unsubscribe here: https://sourceforge.net/mail/?group_id=80706 On 02/01/2011 12:50 PM, Andraz Omahen wrote: I just want you to stop sending massages to me form matplotlib. Thank you -- Special Offer--

Re: [Matplotlib-users] STOP!

2011-02-01 Thread Darren Dale
On Tue, Feb 1, 2011 at 12:50 PM, Andraz Omahen zazmais...@gmail.com wrote: I just want you to stop sending massages to me form matplotlib. Unsubscribe here: https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: [Matplotlib-users] How to use pcolormesh with two masked arrays

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 1:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: On Tue, Feb 1, 2011 at 11:22 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 11:58 AM, Jeremy Conlin jlcon...@gmail.com wrote: I have two arrays and I want to plot the ratio of A/B when A=B or B/A

Re: [Matplotlib-users] How to use pcolormesh with two masked arrays

2011-02-01 Thread Jeremy Conlin
On Tue, Feb 1, 2011 at 1:11 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 1:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: On Tue, Feb 1, 2011 at 11:22 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 11:58 AM, Jeremy Conlin jlcon...@gmail.com wrote:

[Matplotlib-users] Problem with matshow and yticks: the rows of a matrix drawn by matshow does not have equal height

2011-02-01 Thread Denzel Li
I had this problem but could not find the answer online. I will be highly appreciating if anyone can point me some direction on this problem. I installed pythonxy and used matplotlib through ipython. I used matshow to draw a matrix and then set ticklables. This lead to the shown rows having uneven

Re: [Matplotlib-users] Problem with matshow and yticks: the rows of a matrix drawn by matshow does not have equal height

2011-02-01 Thread Paul Ivanov
Denzel Li, on 2011-02-01 15:34, wrote: I had this problem but could not find the answer online. I will be highly appreciating if anyone can point me some direction on this problem. I installed pythonxy and used matplotlib through ipython. I used matshow to draw a matrix and then set

[Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Jeremy Conlin
I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 - Green 1 x = inf - Red A minimal example is copied below. I have a 2-D

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 -

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Jeremy Conlin
On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me.  I want the following colors -3 x = -2 -

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin jlcon...@gmail.com wrote: On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: I'm trying to create a custom colormap used with pcolormesh, but the

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Paul Ivanov
Jeremy Conlin, on 2011-02-01 16:48, wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 - Green 1 x = inf - Red

[Matplotlib-users] fixing overlapping annotations

2011-02-01 Thread Kris Kuhlman
I am trying to plot a large number of locations that need to be labeled. Often the locations are quite clustered and the resulting text is unreadable. I have been looking through the API and examples on the matplotlib web page, and I don't see a straightforward way to plot text labels, preventing

Re: [Matplotlib-users] fixing overlapping annotations

2011-02-01 Thread Paul Ivanov
Kris Kuhlman, on 2011-02-01 18:03, wrote: I am trying to plot a large number of locations that need to be labeled. Often the locations are quite clustered and the resulting text is unreadable. I have been looking through the API and examples on the matplotlib web page, and I don't see a

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Eric Firing
On 02/01/2011 02:18 PM, Benjamin Root wrote: On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin jlcon...@gmail.com mailto:jlcon...@gmail.com wrote: On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu mailto:ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 5:48

Re: [Matplotlib-users] fixing overlapping annotations

2011-02-01 Thread Paul Ivanov
Paul Ivanov, on 2011-02-01 17:14, wrote: Kris Kuhlman, on 2011-02-01 18:03, wrote: I am trying to plot a large number of locations that need to be labeled. Often the locations are quite clustered and the resulting text is unreadable. I have been looking through the API and examples on

Re: [Matplotlib-users] Problem with matshow and yticks: the rows of a matrix drawn by matshow does not have equal height

2011-02-01 Thread Denzel Li
Hi Paul: Thank you for you quick response. I am using pythonxy 2.6.5.6. The matplotlib version is: import matplotlib print matplotlib.__version__ 1.0.0 Do you mean the problem is fixed in matplotlib version 1.0.1? I will upgrade it and see how it works. Your suggestion of ylim(3.5, -0.5) does

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Jeremy Conlin
On Tue, Feb 1, 2011 at 6:31 PM, Eric Firing efir...@hawaii.edu wrote: On 02/01/2011 02:18 PM, Benjamin Root wrote: On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin jlcon...@gmail.com mailto:jlcon...@gmail.com wrote:     On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu