Re: [Matplotlib-users] py2exe with pylab

2007-09-20 Thread Werner F. Bruhin
Hi Emmanuel, Emmanuel wrote: With the setup you provided. I could get py2exe to make an exe of the simple_plot.py from simple_plot_wxagg of py2exe examples. I use matplotlib only from within wxPython, that is why I used this example script. Which of the matplotlib example script is closest

Re: [Matplotlib-users] Drawing filled circles (discs)

2007-09-20 Thread sidimok
Mika, David P (GE, Research) wrote: How about this solution? I'm a complete newbe, but this seems to do the trick. I didn't see a CircleCollection so I used CirclePolygon to generate vertices for a circle; these I grab and toss into a PolyCollection. Enjoy, Dave Hi all! Thank you

Re: [Matplotlib-users] activate/deactivate RectangleSelector

2007-09-20 Thread Matthias Michler
Hello developers, I'm sorry for reposting again. I really would like to have this feature in mpl. Please let me know if there is anything I can do to change my proposal to make it match with matplotlib. thanks in advance and best regards, Matthias

[Matplotlib-users] Geo raster

2007-09-20 Thread Lionel Roubeyrie
Hi all, Can't find any examples on google, then I come here to see if it's possible to display a georeferenced map (geotiff on my side) into Basemap. The PCL module seems great, but there's not useful information on the Trac website. Thanks -- Lionel Roubeyrie - [EMAIL PROTECTED] Chargé

Re: [Matplotlib-users] Geo raster

2007-09-20 Thread Jeff Whitaker
Lionel Roubeyrie wrote: Hi all, Can't find any examples on google, then I come here to see if it's possible to display a georeferenced map (geotiff on my side) into Basemap. The PCL module seems great, but there's not useful information on the Trac website. Thanks Lionel: There's

Re: [Matplotlib-users] Drawing filled circles (discs)

2007-09-20 Thread Mika, David P (GE, Research)
In the solution I gave, CirclePolygon has a resolution argument for number of vertices to approximate the circle (default=20). You could increase that value to some more appropriate level: import matplotlib from matplotlib.patches import CirclePolygon from matplotlib.collections import

Re: [Matplotlib-users] Geo raster

2007-09-20 Thread Lionel Roubeyrie
Hi Jeff, thanks for the reply. Effectively, I saw the warpimage example, and based on that I just want to know if somebody has already used the PCL module to retrieve geographical informations (or another module). Le jeudi 20 septembre 2007, Jeff Whitaker a écrit : Lionel Roubeyrie wrote: Hi

Re: [Matplotlib-users] Geo raster

2007-09-20 Thread Jose Gomez-Dans
Hi Lionel, On 9/20/07, Lionel Roubeyrie [EMAIL PROTECTED] wrote: Hi Jeff, thanks for the reply. Effectively, I saw the warpimage example, and based on that I just want to know if somebody has already used the PCL module to retrieve geographical informations (or another module). With GDAL,

[Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
I would need to create a timeline for a Latex document (eps output). There may be other tools besides Matplotlib and I am open to suggestions. But I were going to use mpl, what would it take to do something along these lines:

Re: [Matplotlib-users] creating a timeline

2007-09-20 Thread John Hunter
On 9/20/07, Ryan Krauss [EMAIL PROTECTED] wrote: I would need to create a timeline for a Latex document (eps output). There may be other tools besides Matplotlib and I am open to suggestions. But I were going to use mpl, what would it take to do something along these lines:

Re: [Matplotlib-users] activate/deactivate RectangleSelector

2007-09-20 Thread John Hunter
On 9/20/07, Matthias Michler [EMAIL PROTECTED] wrote: Hello developers, I'm sorry for reposting again. I really would like to have this feature in mpl. Please let me know if there is anything I can do to change my proposal to make it match with matplotlib. Committed to svn revision 3867 --

Re: [Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
bling-bling. I know it is eye candy and in questionable taste, but I think it fits my non-technical audience in this case. I think this is enough to get me going. Thanks John. Ryan On 9/20/07, John Hunter [EMAIL PROTECTED] wrote: On 9/20/07, Ryan Krauss [EMAIL PROTECTED] wrote: I would

Re: [Matplotlib-users] how to control space between ylabel and yticklabel?

2007-09-20 Thread John Hunter
On 9/19/07, Cizhong Jiang [EMAIL PROTECTED] wrote: I have a long ylabel that is displayed in two lines. Thus, the ylabel overlaps with yticklabels. Does anyone know how to control the space between ylabel and yticklabel? Thank you very much.

[Matplotlib-users] errorbar problem

2007-09-20 Thread Manu Hack
import numpy import pylab x = y = ybar = numpy.arange(0, 10) errorbar(x, y, ybar) errorbar(x, 2 * y, 0.5 * ybar) legend([hi , hi2], loc=0) That gave a AttributeError: LineCollection instance has no attribute 'get_lines'. I'm running matplotlib on Debian Lenny. Thanks a lot.

[Matplotlib-users] latex labels on saved plots

2007-09-20 Thread Jordan Atlas
Hello, I'm having trouble saving eps or pdf versions of plots that have TeX labels using matplotlib. When I try to save an EPS file, I get the message: ... RuntimeError: ghostscript was not able to process your image. Here is the full report generated by ghostscript: (Author's note: No

Re: [Matplotlib-users] how to control space between ylabel and yticklabel?

2007-09-20 Thread jetxee
Wed, 19 Sep 2007 19:58:30 -0400, Cizhong Jiang [EMAIL PROTECTED]: I have a long ylabel that is displayed in two lines. Thus, the ylabel overlaps with yticklabels. Does anyone know how to control the space between ylabel and yticklabel? Thank you very much. This should help:

Re: [Matplotlib-users] latex labels on saved plots

2007-09-20 Thread Jouni K . Seppänen
Jordan Atlas [EMAIL PROTECTED] writes: I'm having trouble saving eps or pdf versions of plots that have TeX labels using matplotlib. Which version of matplotlib are you using? The error message you quote for the pdf backend shows a line 1085 in get_canvas_width_height, which is impossible both

Re: [Matplotlib-users] plot different columns

2007-09-20 Thread Jouni K . Seppänen
Fabian Braennstroem [EMAIL PROTECTED] writes: Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM: def myplot(ax, matrix, linestyle, color): [...] Thanks for your help! add_line seems to be the right function... I am not sure yet, if I need your function call, but I will check it!? Oh, I

Re: [Matplotlib-users] Drawing filled circles (discs)

2007-09-20 Thread Jouni K . Seppänen
sidimok [EMAIL PROTECTED] writes: Thank you very much indeed for the help, both solutions work like a charm. However Dave's one gives rough cirlces, approximated by polygones, which is not very accurate for my buisness. As he said, increasing the number of vertices could be enough, depending

Re: [Matplotlib-users] plot different columns

2007-09-20 Thread Fabian Braennstroem
Hi Jouni, Jouni K. Seppänen schrieb am 09/20/2007 06:50 PM: Fabian Braennstroem [EMAIL PROTECTED] writes: Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM: def myplot(ax, matrix, linestyle, color): [...] Thanks for your help! add_line seems to be the right function... I am not sure

Re: [Matplotlib-users] Starting troubles with matplotlib.

2007-09-20 Thread Jouni K . Seppänen
Shishir Ramam [EMAIL PROTECTED] writes: What I cannot understand is why the vertical bars don't align to the y-axis 0 point. Also if you don't draw some of the green lines, the red ones extend beyond the x-axis. I wonder if this is an artifact from the subpixel rendering in Agg and the

Re: [Matplotlib-users] latex labels on saved plots

2007-09-20 Thread Jordan Atlas
Jouni, Which version of matplotlib are you using? The error message you quote for the pdf backend shows a line 1085 in get_canvas_width_height, which is impossible both in the latest released version 0.90.1 and in current svn. I vaguely remember there being a bug like that quite some time ago.

Re: [Matplotlib-users] Starting troubles with matplotlib.

2007-09-20 Thread Jouni K . Seppänen
Jouni K. Seppänen [EMAIL PROTECTED] writes: Shishir Ramam [EMAIL PROTECTED] writes: What I cannot understand is why the vertical bars don't align to the y-axis 0 point. Also if you don't draw some of the green lines, the red ones extend beyond the x-axis. I wonder if this is an artifact

Re: [Matplotlib-users] how to control space between ylabel and yticklabel?

2007-09-20 Thread Alan G Isaac
On Thu, 20 Sep 2007, jetxee apparently wrote: gca().yaxis.LABELPAD=20 # or the value you like This appears to be undocumented? E.g., http://matplotlib.sourceforge.net/matplotlib.axis.html Cheers, Alan Isaac - This

Re: [Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
I think I have something I like reasonably well. Is that attached timeline fairly intuitive? I am proposing a project for next summer that has two main parts. Each part has three subsections that are roughly one month long. Thanks, Ryan On 9/20/07, Ryan Krauss [EMAIL PROTECTED] wrote: I am