[Matplotlib-users] Generating N regularly spaced points on a sphere

2009-04-14 Thread Zane Selvans
Is there a method built into Numpy/SciPy or friends that will generate a set of N points evenly (regularly - not randomly) sampling the entire surface of a sphere? I imagine people doing GCMs and other geoscience in spherical coordinates have to do this pretty frequently, so I'm sure someone's wri

Re: [Matplotlib-users] pyplot.figure stealing window focus!!

2009-04-14 Thread Andrew Straw
Tyler B wrote: > I think that did it --- thanks Andrew!! > > Just out of curiosity, what does 'Agg' refer to? It's the low-level drawing library, anti-grain. You're bypassing the loading of whatever other "backend" -- a low-level drawing system -- that matplotlib was loading before. Also, I'm g

Re: [Matplotlib-users] pyplot.figure stealing window focus!!

2009-04-14 Thread Tyler B
I think that did it --- thanks Andrew!! Just out of curiosity, what does 'Agg' refer to? Also, I'm guessing that some efficiency is lost once we make Python import the entire library (as opposed to just pyplot as before) -- is there a more efficient way, or is that just the price to pay? Either w

Re: [Matplotlib-users] pyplot.figure stealing window focus!!

2009-04-14 Thread Andrew Straw
Tyler B wrote: > Hi there, > > I am trying to run a python script on my computer at a regular > interval [in the background] to output an image file using > matplotlib. My problem is that every time the script runs, it > momentarily steals focus from whatever I'm working on -- which over > time ge

Re: [Matplotlib-users] tweaking automatic date formatting?

2009-04-14 Thread C M
Thanks, Ryan, John, and Pierre... I will try to change it at the point John suggests, maybe inspired by scikits.timeseries (or just using it). btw, I think adding the ability to set the AutoDateFormat formatting choices per scale would be a good small addition to mpl. (Maybe that is what the com

[Matplotlib-users] pyplot.figure stealing window focus!!

2009-04-14 Thread Tyler B
Hi there, I am trying to run a python script on my computer at a regular interval [in the background] to output an image file using matplotlib. My problem is that every time the script runs, it momentarily steals focus from whatever I'm working on -- which over time gets to be very annoying. I t

Re: [Matplotlib-users] ploting matrix data - contourf

2009-04-14 Thread Eric Firing
Eric Firing wrote: > Matthias Michler wrote: >> Hello list, >> >> playing with the example program (contourf_with_extended_colorbar.py) I also >> send in the last email and using random numbers I get the attached picture >> (contourf_vs_contour_different_behavior.png), which shows up that contour

Re: [Matplotlib-users] ploting matrix data - contourf

2009-04-14 Thread Eric Firing
Matthias Michler wrote: > Hello list, > > playing with the example program (contourf_with_extended_colorbar.py) I also > send in the last email and using random numbers I get the attached picture > (contourf_vs_contour_different_behavior.png), which shows up that contour and > contourf lines do

Re: [Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Michael Droettboom
Ah -- that bug may have been fixed since 0.91, if I recall correctly. Mike Chaitanya Krishna wrote: > Nope. Does not work. > > Fails with ... > > /home/cande/python/packages/matplotlib-0.91.1-py2.5-linux-x86_64.egg/matplotlib/mathtext.py:670: > MathTextWarning: Unrecognized symbol '\['. Substitut

Re: [Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Chaitanya Krishna
Nope. Does not work. Fails with ... /home/cande/python/packages/matplotlib-0.91.1-py2.5-linux-x86_64.egg/matplotlib/mathtext.py:670: MathTextWarning: Unrecognized symbol '\['. Substituting with a dummy symbol. % sym.encode('ascii', 'backslashreplace'), MathTextWarning) /home/cande/python/packag

Re: [Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Michael Droettboom
You need to escape the [ ], e.g. \[ \] Does that work for you? Cheers, Mike Chaitanya Krishna wrote: > Forgot to mention the version in the last mail. I am using > > In [2]: matplotlib.__version__ > Out[2]: '0.91.1' > > Cheers, > Chaitanya > > ---

[Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Chaitanya Krishna
Forgot to mention the version in the last mail. I am using In [2]: matplotlib.__version__ Out[2]: '0.91.1' Cheers, Chaitanya -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment.

[Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Chaitanya Krishna
Hi, Thanks for the previous replies. They were very helpful. I would like to use '[' and ']' in my ylabels. But, when I try to use them I get the following error Lots of tracebacks here ... matplotlib.pyparsing.ParseFatalException: Expected end of math '$' $V_{Fe_{53}M} - V_{Fe_{54}}\ \ [\AA^{3}

Re: [Matplotlib-users] basemap error or user error?

2009-04-14 Thread Anton Vasilescu
That's what was happening! Thanks again Jeff! From: Jeff Whitaker To: antonv Cc: matplotlib-users@lists.sourceforge.net Sent: Tuesday, April 14, 2009 4:39:13 AM Subject: Re: [Matplotlib-users] basemap error or user error? antonv wrote: > Jeff, thanks for the

Re: [Matplotlib-users] tweaking automatic date formatting?

2009-04-14 Thread John Hunter
On Tue, Apr 14, 2009 at 8:34 AM, Ryan May wrote: > I don't think matplotlib supports anything like this out of the box. > However, you should be able to do this by subclassing the Formatter class in > matplotlib/ticker.py. I believe Chaco has support for ticking like this for > dates, so you cou

Re: [Matplotlib-users] Changing symbols instead of colors for lines ...

2009-04-14 Thread John Hunter
On Tue, Apr 14, 2009 at 8:56 AM, Ryan May wrote: > Also, you can use itertools.cycle to loop over a set of markers probably a > bit more cleanly than the example: > > markers = itertools.cycle(lines.Line2D.markers.keys()) > marker = markers.next() Yes, that is better that the somewhat opaque i%

Re: [Matplotlib-users] Changing symbols instead of colors for lines ...

2009-04-14 Thread Ryan May
On Tue, Apr 14, 2009 at 8:50 AM, John Hunter wrote: > On Tue, Apr 14, 2009 at 8:09 AM, Chaitanya Krishna > wrote: > > Hello all, > > > > Usually when I plot two or more lines, the color of the lines change. > > Is it possible to change this default behavior so that when I plot two > > or more li

Re: [Matplotlib-users] Changing symbols instead of colors for lines ...

2009-04-14 Thread John Hunter
On Tue, Apr 14, 2009 at 8:09 AM, Chaitanya Krishna wrote: > Hello all, > > Usually when I plot two or more lines, the color of the lines change. > Is it possible to change this default behavior so that when I plot two > or more lines, the symbols change and not the color. > > This would be useful

Re: [Matplotlib-users] tweaking automatic date formatting?

2009-04-14 Thread Ryan May
On Mon, Apr 13, 2009 at 5:34 PM, C M wrote: > Hi, I've asked this before but still am stuck. I want to use > mpl's automatic tick locating and date formatting for a zoomable > date plot, OTHER THAN the hour formatting. The default hour formatting > (when zoomed in on 1 day) is like "05:00:00 UT

[Matplotlib-users] Changing symbols instead of colors for lines ...

2009-04-14 Thread Chaitanya Krishna
Hello all, Usually when I plot two or more lines, the color of the lines change. Is it possible to change this default behavior so that when I plot two or more lines, the symbols change and not the color. This would be useful if someone is trying to make plots in black and white so that the symbo

Re: [Matplotlib-users] postscript and basemap resolution

2009-04-14 Thread Jeff Whitaker
Andres Luhamaa wrote: > Hello! > I have a problem writing postscript output from a high resolution map. > It does not give any error, but output file gives a lot of errors while > I open it with gv. The following example works for basemap resolution > 'i', but not with resolution 'f'. Any ideas

Re: [Matplotlib-users] basemap error or user error?

2009-04-14 Thread Jeff Whitaker
antonv wrote: > Jeff, thanks for the comment on rebuilding the lons and lats! > > I have attached 2 images, one that is from the whole data in the file and > the other the zoomed version. > http://www.nabble.com/file/p23031035/basemap_all.png basemap_all.png > http://www.nabble.com/file/p23031035

Re: [Matplotlib-users] different dimensions for subplots + same x label

2009-04-14 Thread Matthias Michler
Hi Pau, On Friday 10 April 2009 17:03:20 Pau wrote: > http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg03134 >.html > > I'd like to understand the syntax, though... On the linked page I find: ""ax = axes([0.1, 0.3, 0.8, 0.6])"" and ""The position rectangles are [left, bottom,

[Matplotlib-users] postscript and basemap resolution

2009-04-14 Thread Andres Luhamaa
Hello! I have a problem writing postscript output from a high resolution map. It does not give any error, but output file gives a lot of errors while I open it with gv. The following example works for basemap resolution 'i', but not with resolution 'f'. Any ideas what I should do in a different

Re: [Matplotlib-users] How do I install Matplotlib 0.98 on Ubuntu 8.04 Hardy Heron?

2009-04-14 Thread bollweevil
Thanks for the suggestion. Apt-get build-dep did help a little bit, but it alone did not solve the problem because the 0.98.5.2 version of Matplotlib depended on things that were not listed as dependencies for 0.91.1, which is what apt-get could see from the normal repositories. A friend ultimate