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

Re: [Matplotlib-users] barh gives me: ValueError: frames are not aligned

2006-08-03 Thread Gregory Piñero
Ok, figured it out. My values had to be floats. They were strings. Sorry for the trouble. On 8/3/06, Gregory Piñero <[EMAIL PROTECTED]> wrote: > Hi Fine Matplotlib folks, > > I'm getting this error message and I can figure it out: > > Traceback (most recent call last): > ... > File "C:\automat

[Matplotlib-users] barh gives me: ValueError: frames are not aligned

2006-08-03 Thread Gregory Piñero
Hi Fine Matplotlib folks, I'm getting this error message and I can figure it out: Traceback (most recent call last): ... File "C:\automated tasks\GMVIEW-DEV\chart_gen.debug.py", line 26, in ? p1 = figure.gca().barh(ind, ddata['value'], width, color='r') File "C:\Python24\Lib\site-packages

Re: [Matplotlib-users] ImportError: No module named Numeric

2006-08-03 Thread Charlie Moad
On 8/3/06, John Hunter <[EMAIL PROTECTED]> wrote: > > "Kenny" == Kenny Ortmann <[EMAIL PROTECTED]> writes: > > Kenny> When pylab tries to call numerix\__init__.py it is trying > Kenny> to figure out whether to call numpy, numeric, or numarray. > Kenny> Since it defaults to numeric I

Re: [Matplotlib-users] ImportError: No module named Numeric

2006-08-03 Thread John Hunter
> "Kenny" == Kenny Ortmann <[EMAIL PROTECTED]> writes: Kenny> When pylab tries to call numerix\__init__.py it is trying Kenny> to figure out whether to call numpy, numeric, or numarray. Kenny> Since it defaults to numeric I've tried to change the Kenny> default to numpy, and th

[Matplotlib-users] ImportError: No module named Numeric

2006-08-03 Thread Kenny Ortmann
I am very new to matplotlib. Trying to start the http://matplotlib.sourceforge.net/tutorial.html";>tutorial, the very first script, the first line of the script, throws me this error. I have installed scipy version 0.5.0 for windows, and numpy version 1.0b1 i followed the instructions and made

Re: [Matplotlib-users] Using unicode text and axes labels

2006-08-03 Thread John Hunter
> "marek" == marek <[EMAIL PROTECTED]> writes: marek> I need to make plots in which the axes and text labels marek> display in either English, Spanish, or Portuguese. Does the unicode demo work for you? http://matplotlib.sourceforge.net/examples/unicode_demo.py JDH ---

Re: [Matplotlib-users] basemap and transparent png output

2006-08-03 Thread John Hunter
> "Daniel" == Daniel Poelzleithner <[EMAIL PROTECTED]> writes: Daniel> Hi, I'm developing a websuite for open meshed networks Daniel> written in django. I must admit, matplotlib and such was Daniel> kinda hard stuff to step into. Most examples and Daniel> documentation is only

[Matplotlib-users] Using unicode text and axes labels

2006-08-03 Thread marek
I need to make plots in which the axes and text labels display in either English, Spanish, or Portuguese. I have code that successfully adds the labels in English but when using Spanish or Portuguese characters the labels show up mangled. I then switched to trying to get the simple_plot.py exampl

Re: [Matplotlib-users] tick labeling question

2006-08-03 Thread Steve Schmerler
Alexander Michael wrote: On 8/3/06, *Steve Schmerler* <[EMAIL PROTECTED] > wrote: Hi all How can I change the default behavior of the tick labeling from say 1 2 3 4 x1e-5 to 1e-5 2e-5 3e-5 4e-5 ? My thesis supervisor wants it that

Re: [Matplotlib-users] tick labeling question

2006-08-03 Thread Steve Schmerler
Darren Dale wrote: > On Thursday 03 August 2006 11:59, Alexander Michael wrote: >> On 8/3/06, Steve Schmerler <[EMAIL PROTECTED]> wrote: >>> Hi all >>> >>> How can I change the default behavior of the tick labeling from say >>> >>> 1 2 3 4 x1e-5 >>> >>> to >>> >>> 1e-5 2e-5 3e-5 4e-5 ? >>>

Re: [Matplotlib-users] tick labeling question

2006-08-03 Thread Darren Dale
On Thursday 03 August 2006 11:59, Alexander Michael wrote: > On 8/3/06, Steve Schmerler <[EMAIL PROTECTED]> wrote: > > Hi all > > > > How can I change the default behavior of the tick labeling from say > > > > 1 2 3 4 x1e-5 > > > > to > > > > 1e-5 2e-5 3e-5 4e-5 ? > > > > My thesis supervi

Re: [Matplotlib-users] tick labeling question

2006-08-03 Thread Alexander Michael
On 8/3/06, Steve Schmerler <[EMAIL PROTECTED]> wrote: Hi allHow can I change the default behavior of the tick labeling from say1  2   3   4  x1e-5to1e-5  2e-5  3e-5  4e-5 ?My thesis supervisor wants it that way :(cheers,steve There is problably a better way, but onne way is to set  the label format

[Matplotlib-users] tick labeling question

2006-08-03 Thread Steve Schmerler
Hi all How can I change the default behavior of the tick labeling from say 1 2 3 4 x1e-5 to 1e-5 2e-5 3e-5 4e-5 ? My thesis supervisor wants it that way :( cheers, steve -- Random number generation is the art of producing pure gibberish as quickly as possible. ---