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 wrote: > On 02/01/2011 02:18 PM, Benjamin Root wrote: >> On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin > > wrote: >> >>     On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root >     > wrote: >>      > >>      

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 wor

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

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 > wrote: > > On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root > wrote: > > > > > > On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin

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 s

[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] 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

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 wrote: > On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root wrote: > > > > > > On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin > wrote: > >> > >> I'm trying to create a custom colormap used with pcolormesh, but the > >> results seem inconsistent to me. I

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 wrote: > > > On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin 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 <= -

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 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

[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

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 tickla

[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] 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 wrote: > > > On Tue, Feb 1, 2011 at 1:48 PM, Jeremy Conlin wrote: >> >> On Tue, Feb 1, 2011 at 11:22 AM, Benjamin Root wrote: >> > >> > >> > On Tue, Feb 1, 2011 at 11:58 AM, Jeremy Conlin >> > wrote: >> >> >> >> I have two arrays and I want to plot

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 wrote: > On Tue, Feb 1, 2011 at 11:22 AM, Benjamin Root wrote: > > > > > > On Tue, Feb 1, 2011 at 11:58 AM, Jeremy Conlin > wrote: > >> > >> I have two arrays and I want to plot the ratio of A/B when A>=B or B/A > >> when A >> these two instances, b

Re: [Matplotlib-users] STOP!

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

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-- Downloa

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 wrote: > I have two arrays and I want to plot the ratio of A/B when A>=B or B/A > when A 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 pcolorme

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 co

[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 A=B, fill_value=0.0) ba = numpy.ma.masked_array(B/A, mask=Ahttp://p.sf.net/sfu/arcsight-sfd2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://list

[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 price-free!

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 > 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

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

2011-02-01 Thread Darren Dale
On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout 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 above the \sigma,

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.e

[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

[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 y

[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 = subpl.get_ymajortic

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 > Letnes 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 > figure() >>>

[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 the