Re: [Matplotlib-users] tornado chart

2012-06-21 Thread Tony Yu
On Thu, Jun 21, 2012 at 6:42 PM, Alan G Isaac wrote: > I never thought it would happen, but the > Matplotlib Gallery has for once failed me: > http://matplotlib.sourceforge.net/gallery.html > > I was looking for an example of creating a nice > tornado chart: > > http://code.enthought.com/projects

[Matplotlib-users] matplotlit.pyplot.xtick lablel alignment with subscripts

2012-06-21 Thread Andre' Walker-Loud
Hi All, Trying to tune alignment of xtick labels. I have the following for my lables === import matlplotlib.pyplot as plt x_dat = [1,2,3,4] x_label = ['$\mathrm{nn}$' , '${}^2\mathrm{H}$', '${}^4\mathrm{He}$', '${}^4_{\Lambda\Lambda}\mathrm{He}$'] plt.xticks(x_dat,x_label) === you can see I

[Matplotlib-users] tornado chart

2012-06-21 Thread Alan G Isaac
I never thought it would happen, but the Matplotlib Gallery has for once failed me: http://matplotlib.sourceforge.net/gallery.html I was looking for an example of creating a nice tornado chart: http://code.enthought.com/projects/chaco/docs/html/user_manual/tutorial_1.html http://www.tushar-mehta.c

Re: [Matplotlib-users] legend label for fill_between (or similar)

2012-06-21 Thread Andre' Walker-Loud
Hi Tony, > Unfortunately, I think the preferred method is to create a proxy artist: > > http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist > > Basically, you draw a fake patch with the same parameters as your fill (see > example below). > > Hope that helps, Yes, that

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-06-21 Thread Christopher Graves
On Tue, Mar 27, 2012 at 3:31 AM, Mike Kaufman wrote: > On 3/26/12 12:49 PM, Christopher Graves wrote: > >> On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves >> mailto:christoph.gra...@gmail.com>> wrote: >> > > Try this: >> >>from pylab import * >>from matplotlib.ticker i

Re: [Matplotlib-users] problem with streamplot method in basemap-1.0.3(4)

2012-06-21 Thread Nicolas
Hi all FYI, the streamplot example does work with the dev. version of matplotlib (that I pulled out from github, more specifically matplotlib-matplotlib-v1.1.1-rc2-664-ga2d44d5.zip) thanks Nico On 22 June 2012 02:51, wrote: > Send Matplotlib-users mailing list submissions to >        matplotl

Re: [Matplotlib-users] legend label for fill_between (or similar)

2012-06-21 Thread Tony Yu
On Thu, Jun 21, 2012 at 4:09 PM, Andre' Walker-Loud wrote: > Hi All, > > Sometimes, instead of using data points with error bars, I instead use > fill_between to create a little bar, with a band which I use alpha=.3 or so. > > I have tried unsuccessfully to find an easy way to create a legend labe

[Matplotlib-users] legend label for fill_between (or similar)

2012-06-21 Thread Andre' Walker-Loud
Hi All, Sometimes, instead of using data points with error bars, I instead use fill_between to create a little bar, with a band which I use alpha=.3 or so. I have tried unsuccessfully to find an easy way to create a legend label for this band - I am trying to have a similar band appear in my le

[Matplotlib-users] Can boxplot handle np.NaN?

2012-06-21 Thread Wouter Overmeire
Hi, Is boxplot supposed to be able to handle nan? I assumed it would, but got some unexpected results when trying so. In the example below i try to create boxplot for three lists a,b,c holding samples from normal distribution. Both a and b hold nan, c not. As you can see in the attached screenshot