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.
Th
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'
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 sour
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 a
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
Cheers,
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
Yes, you would put it at the top of your .py file.
In order to use Unicode in Python source code, you have to tell the
Python interpreter what encoding the file is in. That's done with a
little "magic" comment at the top of the file. The popular Unixy
editors (emacs, vim etc.) also understand
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 g
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
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 stories,
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
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
> 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 wit
13 matches
Mail list logo