Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread Gregory Piñero
On 8/3/06, PGM <[EMAIL PROTECTED]> wrote: > But Greg, if it's only for that, try to put an empty label in front of the > others: > figure.gca().set_yticklabels(('', 'Tom', 'Dick', 'Harry', 'Slim', 'Jim')) > That might do the trick No, that didn't work. Did the barh just not work well in my versio

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread PGM
On Thursday 03 August 2006 20:41, Gregory Piñero wrote: > Another question, why are there only four bars showing up when I have > 5 values and 5 labels? ??? On my machine, (matplotlib.__version__ = '0.87.4'), the script you posted around 5PM (EST) works OK, five bars, five labels nicely placed (o

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread Gregory Piñero
Another question, why are there only four bars showing up when I have 5 values and 5 labels? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your op

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread PGM
On Thursday 03 August 2006 17:44, Gregory Piñero wrote: > So all you changed was to add in align='center' ? I assume me using > figure.gca() is equivalent to your use of ax? Yes, gca() is "get the current axes object". > Is it hard to upgrade to the latest version from svn? Any directions? [Fro

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread Gregory Piñero
On 8/3/06, John Hunter <[EMAIL PROTECTED]> wrote: > The following, with svn mpl, works. If it doesn't work for you, make > sure to upgrade your matplotlib; note the use of "align" which is a > fairly recent addition to mpl > > val = [2,5,3,6,3]# the bar lengths > pos = arange(5)+.5

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread John Hunter
> "Gregory" == Gregory Piñero <[EMAIL PROTECTED]> writes: Gregory> On 8/3/06, John Hunter <[EMAIL PROTECTED]> Gregory> wrote: >> > "Gregory" == Gregory Piñero <[EMAIL PROTECTED]> >> writes: Gregory> bar centers on the y axis p1 = figure.gca().barh(pos,val) Gregory>

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread Gregory Piñero
On 8/3/06, John Hunter <[EMAIL PROTECTED]> wrote: > "Gregory" == Gregory Piñero <[EMAIL PROTECTED]> writes: Gregory> bar centers on the y axis p1 = figure.gca().barh(pos,val) figure.gca().set_yticks(pos) Gregory> figure.gca().set_yticklabels(('Tom', 'Dick', 'Harry', Gregor

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread John Hunter
> "Gregory" == Gregory Piñero <[EMAIL PROTECTED]> writes: Gregory> bar centers on the y axis p1 = figure.gca().barh(pos,val) Gregory> figure.gca().set_yticklabels(('Tom', 'Dick', 'Harry', Gregory> 'Slim', 'Jim')) figure.gca().set_xlabel('Perfomance') Gregory> figure.gca().set_ti

[Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread Gregory Piñero
Hi guys, I can't figure out why my code below is generating the attached image. What am I doing wrong? I tried to copy http://matplotlib.sourceforge.net/examples/barh_demo.py but also convert it so I can use the AGG backend. Any help is appriciated. Greg Pinero from __future__ import divisio