Re: [Matplotlib-users] Color Map.

2009-01-15 Thread Scott Sinclair
> 2009/1/15 : >>Matplotlib is a purely 2D plotting library, it doesn't provide similar >>capability to the Matlab 'mesh' function. For 3D plotting you could >>use Mayavi > > > Do you have some example of Python programs using Mayavi ? Simple > examples would be good ones. Please make sure to dire

Re: [Matplotlib-users] plot() cuts off long tick labels

2009-01-15 Thread Eric Firing
Chris Fonnesbeck wrote: > Is there any way of preventing tick label names from being cut off by > the plot canvas? Seems to happen every time: > > http://a3.s3.p.quickshareit.com/files/validationb0e66.png > > Thanks in advance. > There is no automatic way. If you are going to use long labels l

[Matplotlib-users] plot() cuts off long tick labels

2009-01-15 Thread Chris Fonnesbeck
Is there any way of preventing tick label names from being cut off by the plot canvas? Seems to happen every time: http://a3.s3.p.quickshareit.com/files/validationb0e66.png Thanks in advance. -- Chris Fonnesbeck Department of Mathematics and Statistics PO Box 56, University of Otago Dunedin, Ne

[Matplotlib-users] plot() cuts off long tick labels

2009-01-15 Thread Chris Fonnesbeck
Is there any way of preventing tick label names from being cut off by the plot canvas? Seems to happen every time: http://a3.s3.p.quickshareit.com/files/validationb0e66.png Thanks in advance. -- Chris Fonnesbeck Department of Mathematics and Statistics PO Box 56, University of Otago Dunedin, Ne

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-15 Thread Jae-Joon Lee
I presume that you're only interested in the math formula, and not in any other graphical functionality of MPL. You may use mathtext module directly in that case. from matplotlib.mathtext import MathTextParser p = MathTextParser("bitmap") filename, texstr = "test.png", r"$\alpha$" p.to_png(filen

Re: [Matplotlib-users] error compiling MPL: "gtktools.py: no such file or directory"

2009-01-15 Thread Hani Nakhoul
The clean build and install worked! (I'm sorry I couldn't get it to work before--I must not have cleaned it properly.) It's running without any problems. Thank you very much! Hani On Thu, Jan 15, 2009 at 1:09 PM, John Hunter wrote: > On Mon, Jan 12, 2009 at 9:35 AM, Hani Nakhoul wrote: > > I d

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-15 Thread projetmbc
Indeed I would also use mpl to have png of formulas so as to put them in a HTML page. C. >va="baseline" does not work? > >-JJ > > >On Thu, Jan 15, 2009 at 3:05 AM, wrote: >>>Dimension of a text in mpl is renderer-dependent in general. >>>Each renderer has "get_text_width_height_descent" metho

Re: [Matplotlib-users] matplotlib and PyQt

2009-01-15 Thread projetmbc
Message d'origine >Date: Thu, 15 Jan 2009 13:05:21 -0600 >Sujet: Re: [Matplotlib-users] matplotlib and PyQt >De: John Hunter >A: projet...@club-internet.fr, Paul Ivanov >Copie à: matplotlib-users@lists.sourceforge.net > >On Wed, Jan 14, 2009 at 11:28 AM, John Hunter wrote: > >> Paul Iva

Re: [Matplotlib-users] Figure with pyQt

2009-01-15 Thread projetmbc
>> Hello, >> I would like to see the following example >> http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo. ht >> mlusing the 2nd one >> http://matplotlib.sourceforge.net/examples/user_interfaces/

Re: [Matplotlib-users] scale the legend

2009-01-15 Thread David Geller
Well, that is something I *did not* try! But it works! Thanks! D. Jae-Joon Lee wrote: If you use recent version of mpl, the size of the overall legend should scale with the font size. See below, import matplotlib.font_manager prop = matplotlib.font_manager.FontProperties(size=5) lagend(prop=p

Re: [Matplotlib-users] Figure with pyQt

2009-01-15 Thread Darren Dale
On Thu, Jan 15, 2009 at 11:56 AM, wrote: > Hello, > I would like to see the following example > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht > mlusing > the 2nd one > http://matplotlib.sourc

Re: [Matplotlib-users] matplotlib and PyQt

2009-01-15 Thread projetmbc
Title: Flashmail >Simson Garfinkel wrote: >> Why do you want to use PyQt and not wxwidgets? >> >maybe because the Qt license changed ? >That's a reason for me to be interested in the answer. > >cheers, >Stef    Here something that could interest you. Christophe       Dear Qt User: Nokia is plea

Re: [Matplotlib-users] matplotlib and PyQt

2009-01-15 Thread Stef Mientki
Simson Garfinkel wrote: > Why do you want to use PyQt and not wxwidgets? > maybe because the Qt license changed ? That's a reason for me to be interested in the answer. cheers, Stef -- This SF.net email is sponsored b

Re: [Matplotlib-users] error compiling MPL: "gtktools.py: no such file or directory"

2009-01-15 Thread John Hunter
On Mon, Jan 12, 2009 at 9:35 AM, Hani Nakhoul wrote: > I did use sudo--here are the shell command and the install output: > > sudo python setup.py install Please try doing a clean build and install following the instructions at http://matplotlib.sourceforge.net/faq/installing_faq.html#source-i

Re: [Matplotlib-users] matplotlib and PyQt

2009-01-15 Thread John Hunter
On Wed, Jan 14, 2009 at 11:28 AM, John Hunter wrote: > Paul Ivanov recently wrote pong using the matplotlib event system, and > then provided a gtk and qt version of them that requires no additional > gui programming save for starting up the window and event loop. Oops, accidentally attached the

[Matplotlib-users] Scale subplot plots?

2009-01-15 Thread Eric Jonas
I've looked in both the examples and the docs, and have yet to find a clear way of accomplishing the following: I have a plot with two subplots: |---| | | | | |---

[Matplotlib-users] Figure with pyQt

2009-01-15 Thread projetmbc
Hello, I would like to see the following example http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht ml using the 2nd one http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt 4.html . In fact, I don't undrestand how to add the figure to the screen (I'm

Re: [Matplotlib-users] Color Map.

2009-01-15 Thread Ryan May
Oscar ¿? wrote: > Hello folks, > > I´m a new user of this forum. I'm trying to work in Python at the moment > but it´s quite difficult for me. My first question is if it is possible > to do Color Maps in Matplotlib in the same manner of the "mesh" function > in Matlab. Could you help me anybody?

Re: [Matplotlib-users] Segmentation fault when calling imshow with complex array

2009-01-15 Thread Michael Droettboom
Thanks for the report. This issue is actually already fixed in matplotlib SVN as of r6283: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=6283 You can use the above patch to patch your local copy if you don't want to install entirely from SVN. Mike Philipp Lies wrot

Re: [Matplotlib-users] [Matplotlib-announce] Saving image in .jpeg format

2009-01-15 Thread John Hunter
On Thu, Jan 15, 2009 at 7:56 AM, Michael Droettboom wrote: > The matplotlib-announce list is for announcements about releases of > matplotlib and related projects only. Please ask user questions on > matplotlib-users. (I have forwarded this message there). > > There is a table of which output fo

Re: [Matplotlib-users] [Matplotlib-announce] Saving image in .jpeg format

2009-01-15 Thread Michael Droettboom
The matplotlib-announce list is for announcements about releases of matplotlib and related projects only. Please ask user questions on matplotlib-users. (I have forwarded this message there). There is a table of which output formats are supported by each backend here: http://matplotlib.svn.so

Re: [Matplotlib-users] Color Map.

2009-01-15 Thread Scott Sinclair
> 2009/1/15 Oscar ¿? > I´m a new user of this forum. I'm trying to work in Python at the moment but > it´s quite difficult for me. My first question is if it is > possible to do Color Maps in Matplotlib in the same manner of the "mesh" > function in Matlab. Could you help me anybody? Hi Oscar,

[Matplotlib-users] Saving image in .jpeg format

2009-01-15 Thread Emanuele Passera
Hi all, I have always used .png format for my matplotlib applications but now i am compelled to save many figures in .jpeg format. Those image should be automatically saved (no GUI) but i can't find out how to save the images. Executing this scripts import pylab as p p.rcParams['backend']='gdk

[Matplotlib-users] Color Map.

2009-01-15 Thread Oscar ¿?
Hello folks, I´m a new user of this forum. I'm trying to work in Python at the moment but it´s quite difficult for me. My first question is if it is possible to do Color Maps in Matplotlib in the same manner of the "mesh" function in Matlab. Could you help me anybody? Thanks in advance.

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-15 Thread Jae-Joon Lee
va="baseline" does not work? -JJ On Thu, Jan 15, 2009 at 3:05 AM, wrote: >>Dimension of a text in mpl is renderer-dependent in general. >>Each renderer has "get_text_width_height_descent" method which returns >>width, height, and descent of the given text. >>If you're only interested in latex-

[Matplotlib-users] Segmentation fault when calling imshow with complex array

2009-01-15 Thread Philipp Lies
Hi, I have a problem with pyplot. When I'm passing an numpy array with complex entries to imshow I receive the error message: TypeError: array cannot be safely cast to required type Which is ok, when I thereafter call imshow with a valid image (i)python segfaults. Sometimes it even segfaults ins

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-15 Thread projetmbc
Title: Flashmail >Dimension of a text in mpl is renderer-dependent in general. >Each renderer has "get_text_width_height_descent" method which returns >width, height, and descent of the given text. >If you're only interested in latex-rendered text, you may use the >get_text_width_height_descent