Re: [Matplotlib-users] Export 3D plot to 3D file format

2012-03-27 Thread Frédéric Vogt
Is the savefig function what you're looking for ? http://github.enthought.com/mayavi/mayavi/auto/mlab_figure.html Note that as far as I know, the .mtl file associated with a given .obj file is not handled properly - all your colors will be white. Personally, I export in .vrml which suits my nee

Re: [Matplotlib-users] Export 3D plot to 3D file format

2012-03-27 Thread klo uo
Ah mayavi... I find it complicated for building, and in Ubuntu repository (or launchpad) there is some old version I'll try later today to build it Thanks for your suggestion, Cheers On Tue, Mar 27, 2012 at 11:25 PM, Frédéric Vogt wrote: > Is the savefig function what you're looking for ? > > h

[Matplotlib-users] zooming with transforms

2012-03-27 Thread Arnaud Gardelein
What is the most effective approach to perform a 'zoom under mouse cursor'? Currently I use the following code (considering g as mpl.Axes), but set_xlim() is called twice. Is there a better approach? # First zoom result = \ g.bbox.shrunk(DEFAULT_ZOOM_FACTOR,1).transformed(g.transData.inverted())

Re: [Matplotlib-users] Display problem on CentOS

2012-03-27 Thread Eric Firing
On 03/26/2012 12:14 PM, Magician wrote: > Hi. > > I want to install Matplotlib from source code on CentOS. > I've been using Matplotlib for a year. > But this is the first time for me to install CentOS by myself. > > I installed CentOS 6.2 in basic install option. > Next, I installed NumPy and Matp

Re: [Matplotlib-users] Taylor diagram (2nd take)

2012-03-27 Thread Michael Rawlins
self._ax.grid is in the code I have.  Jae-Joon: Yannick must have modified the code beyond the version to which you refer. Mike From: Jae-Joon Lee To: Yannick Copin Cc: Michael Rawlins ; matplotlib-users@lists.sourceforge.net Sent: Monday, March 26,

Re: [Matplotlib-users] Display problem on CentOS

2012-03-27 Thread Alexis Praga
You can check you are editing the correct configuration file with (in the Python shell) : >>> import matplotlib >>> matplotlib.matplotlib_fname() You can also try other backends. For a list, see : http://matplotlib.sourceforge.net/faq/usage_faq.html#what-is-a-backend On Tue, Mar 27, 2012 at 2:46

[Matplotlib-users] error with matplotlib installation

2012-03-27 Thread Ana
Hi! I am trying to install the matplotlib in my pc with the following configuration Windows 7, 64 python2.6.6 >>> numpy.__version__ '1.6.1' >>> matplotlib.__version__ '1.1.0' once i try to test the code i get the following error fir matplotlib: >>> import numpy >>> import numpy as np >>> import

Re: [Matplotlib-users] Display problem on CentOS

2012-03-27 Thread Magician
Thank you, Alexis. I try to install PyQt4 and set Qt4Agg just now, but nothing displayed. Ummm...what's wrong...?? Magician On 2012/03/27, at 17:05, Alexis Praga wrote: > I had the same problem on Debian. > Editing the matplotlibrc (should be installed somewhere in your > systeme) and changin

Re: [Matplotlib-users] Escaping in matplotlib.font_manager.findfont('sans\\-serif')

2012-03-27 Thread Martin Mokrejs
Hi Michael, I was playing with python directly, so: $ python Python 2.7.2 (default, Mar 10 2012, 02:39:52) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from matplotlib import font_manager >>> font_manager.path '/home/mmokrejs/.fonts' >>> font

Re: [Matplotlib-users] Display problem on CentOS

2012-03-27 Thread Alexis Praga
I had the same problem on Debian. Editing the matplotlibrc (should be installed somewhere in your systeme) and changing the "backend" variable to Qt4Agg did the trick. On Tue, Mar 27, 2012 at 12:14 AM, Magician wrote: > Hi. > > I want to install Matplotlib from source code on CentOS. > I've bee

Re: [Matplotlib-users] (no subject)

2012-03-27 Thread Francesco Montesano
Il 27 marzo 2012 05:08, Dorm Eight ha scritto: > hi, everybody! > > when I run my script, why there is no figure show up? I downloaded the demos > from matplotlib gallery and it didn't work either. x=np.arange(100) y=x**2+3*x-1 pl.plot(x,y) > [] pl.show() > there is n