Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 2:13 PM, Hani Nakhoul wrote: > Dear all, > Here is the listing: > > In [1]: import matplotlib > > In [2]: print matplotlib.__file__ > matplotlib/__init__.pyc > > In [3]: ls -a > ./       .gimp-2.6/      Public/ > ../       .gksu.lock      .pulse/ > .adobe/

Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread Hani Nakhoul
I'm sorry--here's the right listing: $ ls matplotlib agg24 examples KNOWN_BUGS PKG-INFOsetup.py build __init__.py libREADME.txt src build.out __init__.pyc licensesetup.cfg.template TODO CHANGELOG INSTALL

Re: [Matplotlib-users] Upgrading of 3D plotting in matplotlib- recent comments on web site.

2009-06-09 Thread Lou Pecora
--- On Tue, 6/9/09, Gökhan SEVER  wrote: > Modified that section as to eliminate confusions: > NOTE: Experimental work has been going on to integrate 3D plotting >functionality into matplotlib. Please see the related mplot3d documentation or >take a look at matplotlib gallery for example 3D plo

Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 2:42 PM, Hani Nakhoul wrote: > I'm sorry--here's the right listing: > > $ ls matplotlib > agg24  examples  KNOWN_BUGS PKG-INFO    setup.py > build  __init__.py   lib    README.txt  src > build.out  __init__.pyc  license 

Re: [Matplotlib-users] Upgrading of 3D plotting in matplotlib- recent comments on web site.

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 3:05 PM, Lou Pecora wrote: > - > It is good news that matplotlib 3D functions are being upgraded.  Thank you. > But it is unclear from the message whether one still must stay with 0.9

Re: [Matplotlib-users] Upgrading of 3D plotting in matplotlib- recent comments on web site.

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 3:05 PM, Lou Pecora wrote: > > --- On *Tue, 6/9/09, Gökhan SEVER * wrote: > > Modified that section as to eliminate confusions: > > *> NOTE:* *Experimental work has been going on to integrate 3D plotting > functionality into matplotlib. Please see the related mplot3d > docu

[Matplotlib-users] MPL with PyQt: different behavior on Windows vs. Linux

2009-06-09 Thread Steve Nicholes
Hi, I am writing some code for automated testing via GPIB using MPL and PyQt.  To simulate automated data collection while debugging the program, I have added a for loop (see below) after reading in a data file that plots each point one by one.  When I run the program in Linux, I see each point

Re: [Matplotlib-users] MPL with PyQt: different behavior on Windows vs. Linux

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 5:17 PM, Steve Nicholes wrote: > I am writing some code for automated testing via GPIB using MPL and PyQt. > To simulate automated data collection while debugging the program, I have > added a for loop (see below) after reading in a data file that plots each > point one by o

[Matplotlib-users] axis break: a bit of a random query

2009-06-09 Thread Nicholas Stephens
Hi all, I am still very green when it comes to the use of matplotlib but I am finding the versatility and robustness of the package extremely useful at present. One application I am constantly using matplotlib for concerns a break in the axis. Although I have a script or two based on an origin

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Anton Vasilescu
You're right, I haven't read your question properly... I am not sure that autocrop exists in pil. Maybe somebody with more experience can shed some light. Sent from my iPhone On Jun 9, 2009, at 12:10 PM, "Nils Wagner" wrote: On Tue, 9 Jun 2009 11:31:19 -0700 (PDT) Anton Vasilescu wrote: I

Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread Jouni K . Seppänen
John Hunter writes: > es, this is your problem. You have the matplotlib source directory in > your HOME directory and when you run from your home directory, it is > being picked up instead of the installation directory. I usually name > my src tree "mpl" to avoid this problem I don't know why

Re: [Matplotlib-users] MPL with PyQt: different behavior on Windows vs. Linux

2009-06-09 Thread Steve Nicholes
Thanks John.  I hope you aren't receiving this reply twice (my email kicked me out when I hit send).  I actually am importing pylab so it isn't an entirely qt app.  I didn't post all of the code originally b/c it is long (and it would reveal how poor of a programmer I am :) ), but here are the r

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Jae-Joon Lee
If you're using very recent version of mpl, you may try savefig with "bbox_inches" option. savefig("a.png", bbox_inches="tight") The algorithm is not perfect, but will work for most of simple plots. Regards, -JJ On Tue, Jun 9, 2009 at 1:22 PM, Nils Wagner wrote: > Hi all, > > I am looking for

[Matplotlib-users] plots do not scale to size

2009-06-09 Thread Paul Anton Letnes
Dear all. When I run the script below, the xlabel and ylabel do not show up. If I increase the figure size, it all works fine. If I open the file in Adobe Illustrator, the x and ylabels are both there, but outside the canvas (or bounding box or whatever it is called). I believe this must

Re: [Matplotlib-users] plots do not scale to size

2009-06-09 Thread Chaitanya Krishna
Hi Paul, I am not sure if it is a bug. But, it is usual that such a thing happens when you are making small figures (like in your case). Try adjusting the following parameters in your rc file, in particular increase the left space. # The figure subplot parameters. All dimensions are fraction of

[Matplotlib-users] plots do not scale to size

2009-06-09 Thread Paul Anton Letnes
Dear all. When I run the script below, the xlabel and ylabel do not show up. If I increase the figure size, it all works fine. If I open the file in Adobe Illustrator, the x and ylabels are both there, but outside the canvas (or bounding box or whatever it is called). I believe this must

[Matplotlib-users] Custom coordinates in navigation window

2009-06-09 Thread Nan Dun
Hello, Currently, in navigation window, the coordinates of cursor show like x = "%.1f", y="%.1f" Is it possible to custom these labels such that they show like my_x="%.3f", my_y="%.6f" Thank you. Nan -- Crystal Report

Re: [Matplotlib-users] imshow axis labels

2009-06-09 Thread Michael Droettboom
You may just want to start with the "custom_ticker1.py" example here: http://matplotlib.sourceforge.net/examples/pylab_examples/custom_ticker1.html The meat of it is just to provide a function that converts the incoming values (in your case pixel positions) into whatever you want to be displaye

Re: [Matplotlib-users] Custom coordinates in navigation window

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 4:44 AM, Nan Dun wrote: > Hello, > > Currently, in navigation window, the coordinates of cursor show like > x = "%.1f", y="%.1f" > > Is it possible to custom these labels such that they show like > > my_x="%.3f", my_y="%.6f" def my_x(x): return '%.3f'%x def my_y(y): return

[Matplotlib-users] matplotlibrc customizing

2009-06-09 Thread Ulrich vor dem Esche
Greetings! I am new to matplotlib and python, and encountered a general problem: If i try to customize matplotlibrc, nothing changes. I changed the right thing: When i try import matplotlib matplotlib.matplotlib_fname() I get 'C:\\Python25\lib\\site-packages\\matplotlib\\mpl-data\\matplotlibrc' (

Re: [Matplotlib-users] matplotlibrc customizing

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 8:23 AM, Ulrich vor dem Esche wrote: > Greetings! I am new to matplotlib and python, and encountered a general > problem: > If i try to customize matplotlibrc, nothing changes. I changed the right > thing: > When i try > > import matplotlib > matplotlib.matplotlib_fname() >

Re: [Matplotlib-users] matplotlibrc customizing

2009-06-09 Thread Sebastian Busch
Ulrich vor dem Esche wrote: > ... > #xtick.labelsize : 14 (from '12') > #xtick.direction : out (from 'in') > > nothing changes ... > I must have missed something very basic.. I guess that would be the "#" which declares everything behind as a comment. Does it work when you remove the

Re: [Matplotlib-users] plots do not scale to size

2009-06-09 Thread Jouni K . Seppänen
Chaitanya Krishna writes: > On Tue, Jun 9, 2009 at 12:05 PM, Paul Anton Letnes > wrote: >> >> When I run the script below, the xlabel and ylabel do not show up. If I >> increase the figure size, it all works fine. > > I am not sure if it is a bug. But, it is usual that such a thing > happens wh

[Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread Hani Nakhoul
Dear all, I'm running matplotlib 0.98.5.2 on a machine with Ubuntu Intrepid 8.10. It's worked well for me so far, but I encounter problems running matplotlib when trying to update the PYTHONPATH in the .bashrc file. Adding just the line "export PYTHONPATH=$PYTHONPATH", for example, gives the follow

Re: [Matplotlib-users] plots do not scale to size

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 10:18 AM, Jouni K. Seppänen wrote: > Chaitanya Krishna writes: > >> On Tue, Jun 9, 2009 at 12:05 PM, Paul Anton Letnes >> wrote: >>> >>> When I run the script below, the xlabel and ylabel do not show up. If I >>> increase the figure size, it all works fine. >> >> I am not

Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread John Hunter
On Tue, Jun 9, 2009 at 10:22 AM, Hani Nakhoul wrote: > Dear all, > I'm running matplotlib 0.98.5.2 on a machine with Ubuntu Intrepid 8.10. It's > worked well for me so far, but I encounter problems running matplotlib when > trying to update the PYTHONPATH in the .bashrc file. Adding just the line >

Re: [Matplotlib-users] Where to post examples (specifically, one that may be useful for time-evolution plots)

2009-06-09 Thread C Lewis
> >> I am curious though why you prefer to alter the default color cycle >> rather than just passing the color in to the plot command [...] > I got tired of the extra code involved with this method and went > looking for a way to change the defaults. I do something similar to enforce style/subs

[Matplotlib-users] autocrop function

2009-06-09 Thread Nils Wagner
Hi all, I am looking for an autocrop function. It should remove borders from an image. Is it available in matplotlib ? Any pointer would be appreciated. Thanks in advance Nils

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Esmail
Sebastian Busch wrote: > > > Hey Esmail, > > there was the possibility for 3D plots in matplotlib: > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > however, the mayavi "mlab" interface was designed explicitly to be as > simple as pylab. > http://code.enthought.com/projects/mayavi/docs/deve

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 12:46 PM, Esmail wrote: > Sebastian Busch wrote: > > > > > > Hey Esmail, > > > > there was the possibility for 3D plots in matplotlib: > > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > > > however, the mayavi "mlab" interface was designed explicitly to be as > > simp

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Esmail
Hi Gökhan, Gökhan SEVER wrote: > > I'll give mayavi/mlab a try, I think there was a note to the > effect that matplotlib quit supporting 3D plots and recommended > mayavi. > > > There is still work going on to improve matplotlib 3d plotting > functionality. You can see matplotlib

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 1:00 PM, Esmail wrote: > Hi Gökhan, > > > Gökhan SEVER wrote: > > > > I'll give mayavi/mlab a try, I think there was a note to the > > effect that matplotlib quit supporting 3D plots and recommended > > mayavi. > > > > > > There is still work going on to improve

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Anton Vasilescu
I wasn't able to find one in Matplotlib but you can use PIL library for all the imaging work. Really easy to use. Here is the webpage for it: http://www.pythonware.com/products/pil/index.htm Anton From: Nils Wagner To: matplotlib-users@lists.sourceforge.net

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Nils Wagner
On Tue, 9 Jun 2009 11:31:19 -0700 (PDT) Anton Vasilescu wrote: > I wasn't able to find one in Matplotlib but you can use >PIL library for all the imaging work. Really easy to use. > Here is the webpage for it: >http://www.pythonware.com/products/pil/index.htm > > Anton > > Hi Anton, Thank

Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread Hani Nakhoul
Dear all, Here is the listing: In [1]: import matplotlib In [2]: print matplotlib.__file__ matplotlib/__init__.pyc In [3]: ls -a ./ .gimp-2.6/ Public/ ../ .gksu.lock .pulse/ .adobe/.gnome2/ .pulse-cookie ATLAS/ .gnome2_private/