Re: [Matplotlib-users] How do I make the ticks go from 0 to 100?

2008-04-01 Thread Jeff Whitaker
Carl Wenrich wrote: > Thanks, Jeff. The hlines work fine. But the ylim doesn't change > anything. I still get a plot that goes from 20 to 90 instead of 0 to > 100. Here's my code. Please take a quick look and tell me where I have > to put the ylim statement. > > fig = figure(figsize=(6,2)) > tit

Re: [Matplotlib-users] How do I make the ticks go from 0 to 100?

2008-04-01 Thread Jeff Whitaker
carlwenrich wrote: > I have a dataset where the values range from 20 to 90, but I want the y > coordinates to go from 0 to 100. > import pylab pylab.ylim(0,100) > Also, how can I draw a highlight (colored line) across the chart at 30, and > another at 70? > pylab.axhline(30,color='r') pylab

[Matplotlib-users] How do I make the ticks go from 0 to 100?

2008-04-01 Thread carlwenrich
I have a dataset where the values range from 20 to 90, but I want the y coordinates to go from 0 to 100. Also, how can I draw a highlight (colored line) across the chart at 30, and another at 70? -- View this message in context: http://www.nabble.com/How-do-I-make-the-ticks-go-from-0-to-100--tp1

Re: [Matplotlib-users] Basemaps - shapefile import/display for points

2008-04-01 Thread Jeff Whitaker
KURT PETERS wrote: > Jeff, > Do you think it's possible the names or CITIESX020 variable are not > being brought in in the right order? > I modified my code to use scatter, and, although it looks like the > dots are in the right place, the names aren't matching? > see code: > = > import

Re: [Matplotlib-users] Basemaps - shapefile import/display for points

2008-04-01 Thread KURT PETERS
Jeff, Do you think it's possible the names or CITIESX020 variable are not being brought in in the right order? I modified my code to use scatter, and, although it looks like the dots are in the right place, the names aren't matching? see code: = import pylab as p import numpy from mat

Re: [Matplotlib-users] gca.annotate doesn't work scatter does

2008-04-01 Thread Jeff Whitaker
KURT PETERS wrote: > can someone explain why scatter would work but gca.annotate would not when > plotting data on a map (see previous posts)? > I've also tried pylib.figtext and that doesn't work either. > > Regards, > Kurt > > > Kurt: This works for me (with the latest svn version of base

[Matplotlib-users] gca.annotate doesn't work scatter does

2008-04-01 Thread KURT PETERS
can someone explain why scatter would work but gca.annotate would not when plotting data on a map (see previous posts)? I've also tried pylib.figtext and that doesn't work either. Regards, Kurt - Check out the new Source

Re: [Matplotlib-users] scipy, matplotlib import errors

2008-04-01 Thread Robert Kern
John wrote: > Hello, could someone please help me understand a strange problem, > possibly associated with PYTHONPATH. When I import matplotlib, pylab, or > scipy from any directory other than the root installation directory, it > fails. However, if I'm in the python installation directory there

Re: [Matplotlib-users] Radial Plot Weirdness

2008-04-01 Thread Michael Droettboom
Nick Susch wrote: > Hi, > > I am new to this list, so forgive me if this has been asked before. I > am trying to do a radial plot and the following code does not seem to > work: > > # --< START CODE >--- > import pylab > import matplotlib > > fig = pylab.figure(figsize=(8,8)) > ax = fig.a

Re: [Matplotlib-users] What's up with py2exe_datafiles?

2008-04-01 Thread Michael Droettboom
Christopher Barker wrote: > Hi all, > > as far as I can tell, matplotlib.py2exe_datafiles is broken with the > latest release. Is it getting fixed? > > Also, there is a LOT of stuff in there -- is there a way to strip out > the stuff you may not need for a particular application? I'm using MPl >