[Matplotlib-users] Basemap to KML polygon

2008-07-22 Thread Lionel Roubeyrie
Looks like I've done a mistake with my last post, sorry Eli... I know how to save datas to a shapefile with the OGR library but only for points datas. I'll appreciate if somebody can point me how to save a filled contour map basemap into a polygon shapefile, can't find any example with google.

Re: [Matplotlib-users] Basemap to KML polygon

2008-07-22 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Looks like I've done a mistake with my last post, sorry Eli... I know how to save datas to a shapefile with the OGR library but only for points datas. I'll appreciate if somebody can point me how to save a filled contour map basemap into a polygon shapefile, can't

Re: [Matplotlib-users] default mathtext font

2008-07-22 Thread Michael Droettboom
As an alternative, you could just use Unicode to insert the Greek characters: rα-Fe (Someone 2003) The default font used by matplotlib, Vera Sans, includes a full set of Greek characters. This, of course, requires an editor that supports Unicode and a coding directive at the top of your

[Matplotlib-users] *Non-interactive* image generation?

2008-07-22 Thread Jonathan Hayward http://JonathansCorner.com
I would like to use pylab in a CGI script that would generate a pie chart/bar graph/..., save it to a file, and then be able to output the image from the file. Everything that I've tried works if I run the script from my shell, but when it runs on my test box (or, for that matter, a sudo without

Re: [Matplotlib-users] *Non-interactive* image generation?

2008-07-22 Thread Michael Droettboom
You probably want to look at this FAQ: http://matplotlib.sourceforge.net/faq.html#APPSERVER Or the slightly more updated and elaborate answer in the new (in-progress) docs: http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-use-matplotlib-in-a-web-application-server

Re: [Matplotlib-users] default mathtext font

2008-07-22 Thread Eli Brosh
Thanks, This seems to be a solution. I have an editor that supports unicode. But, can you please explain better how do I make the coding directive at the top of my source files ? Where do I write the command: # -*- coding: utf-8 -*- Is it inside the python script ? Sorry for the ignorance. Eli

[Matplotlib-users] Scaling--I couldn't find it, but should this be in FAQ list?

2008-07-22 Thread Jonathan Hayward http://JonathansCorner.com
I'm tinkering with a modified version of http://matplotlib.sourceforge.net/screenshots/barchart_demo.py : # a bar plot with errorbars # a bar plot with errorbars from pylab import * N = 5 menMeans = (20, 35, 30, 35, 27) menStd = ( 2, 3, 4, 1, 2) ind = arange(N) # the x locations for the

Re: [Matplotlib-users] Scaling--I couldn't find it, but should this be in FAQ list?

2008-07-22 Thread John Hunter
On Tue, Jul 22, 2008 at 3:51 PM, Jonathan Hayward http://JonathansCorner.com I would like to shrink the graph height to a third or a fourth of its present value, and possibly cut the padding. How can I control that? You can create an axes for plotting into with whatever dimensions you want, by

[Matplotlib-users] Border appearance

2008-07-22 Thread Jonathan Hayward http://JonathansCorner.com
On the two routines I'm modifying from examples, boundaries and borders are generally a hefty black. How can I control color and/or thickness and/or turn off items like boundaries that are drawn in black? -- -- Jonathan Hayward, [EMAIL PROTECTED] ** To see an award-winning website with

Re: [Matplotlib-users] Scaling--I couldn't find it, but should this be in FAQ list?

2008-07-22 Thread John Hunter
On Tue, Jul 22, 2008 at 4:06 PM, Jonathan Hayward http://JonathansCorner.com [EMAIL PROTECTED] wrote: Thank you; I've shrunk the graphic part. Please respond to the mailing list (reply to all) When I save it as an image, it's painting an 800x600 image, so I've shrunk the portion of the

Re: [Matplotlib-users] Border appearance

2008-07-22 Thread John Hunter
On Tue, Jul 22, 2008 at 4:28 PM, Jonathan Hayward http://JonathansCorner.com [EMAIL PROTECTED] wrote: On the two routines I'm modifying from examples, boundaries and borders are generally a hefty black. How can I control color and/or thickness and/or turn off items like boundaries that are

Re: [Matplotlib-users] Basemap to KML polygon

2008-07-22 Thread Tim Michelsen
Looks like I've done a mistake with my last post, sorry Eli... I know how to save datas to a shapefile with the OGR library but only for points datas. I'll appreciate if somebody can point me how to save a filled contour map basemap into a polygon shapefile, can't find any example with