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

2007-09-20 Thread Jouni K . Seppänen
Jordan Atlas <[EMAIL PROTECTED]> writes: > Now, when I try to save a PDF (with the newer version of matplotlib), I > get the error: [...] > File "C:\Python24\Lib\site-packages\matplotlib\backend_bases.py", line > 383, in draw_tex > raise NotImplementedError > NotImplementedError That mea

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 a

Re: [Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
I am really just getting to mess with this now and ran into an issue. I want to turn off the y axis and 3 sides of the border around the plot area, so that I left with just the bottom x-axis and its tick marks. Turning off the y axis is easy enough, but the only way I found to get rid of the borde

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 SF.

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

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
"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 sn

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

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, depend

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!? O

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 b

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: gca().yax

[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

Re: [Matplotlib-users] Screen location

2007-09-20 Thread John Hunter
On 9/19/07, Yo mismo Hotmail <[EMAIL PROTECTED]> wrote: > Hi all! > > I'm actually working with Matplotlib/Pylab Interface for making 2D plot. I > need to specify screen location where the frame will appear and I don't know > how. Supose a simple example like: > > from pylab import * > > t = arange

Re: [Matplotlib-users] errorbar problem

2007-09-20 Thread Eric Firing
Manu Hack wrote: > 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'. This was fixed in svn. I don't

[Matplotlib-users] Screen location

2007-09-20 Thread Yo mismo Hotmail
Hi all! I'm actually working with Matplotlib/Pylab Interface for making 2D plot. I need to specify screen location where the frame will appear and I don't know how. Supose a simple example like: from pylab import * t = arange(0.0,10,0.01) s = 20*sin(2*pi*t) c = 20*cos(2*pi*t) figure(1) plot(s)

[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. --

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. > https://lists.sourceforge.net/lists/listinfo/m

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 wou

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 3

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: > http://www.

[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: http://www.timelinemaker.com/product-samplecharts-constructiontimeline.h

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 GDA

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: > >

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 PolyCollec

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: T

[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é d'étude

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 ---

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! Than

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