[Matplotlib-users] matplotlib v1.0.0 for mac: installation problem

2010-08-10 Thread Antonino Cucchiara
Hello,
I am running a MacOS Snow leopard and I recently istalled the python 2.6 
via Enthought.
I wanted to upgrade the matplotlib 1.0 but when I run the .mpkg the 
installation don't start because
it seems not recognizing the python 2.6 is installed (I do have now 2.6.6).

Any suggestions?

Thanks,
Nino

-- 

Antonino Cucchiara, PhD
Postdoctoral Scholar
Lawrence Berkeley National Lab
UC Berkeley
website: www.astro.psu.edu/~cucchiara/


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] matplotlib v1.0.0: mac installation issue

2010-08-09 Thread Antonino Cucchiara
Hello,
I am running a MacOS Snow leopard and I recently istalled the python 2.6 
via Enthought.
I wanted to upgrade the matplotlib 1.0 but when I run the .mpkg the 
installation don't start because
it seems not recognizing the python 2.6 is installed (I do have now 2.6.6).

Any suggestions?

Thanks,
Nino

-- 

Antonino Cucchiara, PhD
Postdoctoral Scholar
Lawrence Berkeley National Lab
UC Berkeley
website: www.astro.psu.edu/~cucchiara/


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] GTk backend problem

2010-08-09 Thread Antonino Cucchiara

Hello,
I recently upgraded to Enthought python 2.6 an so I have now matplotlib 
0.99.3
My scripts now no longer seem to find the pyGTK since when I run them I 
got this message:


Traceback (most recent call last):
  File ./sed_plotb_v2.py, line 14, in module
from pylab import *
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pylab.py, 
line 1, in module

from matplotlib.pylab import *
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pylab.py, 
line 247, in module

from matplotlib.pyplot import *
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pyplot.py, 
line 78, in module

new_figure_manager, draw_if_interactive, show = pylab_setup()
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/__init__.py, 
line 25, in pylab_setup

globals(),locals(),[backend_name])
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py, 
line 10, in module
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, 
FigureCanvasGTK,\
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py, 
line 11, in module

raise ImportError(Gtk* backend requires pygtk to be installed.)
ImportError: Gtk* backend requires pygtk to be installed.


is any way to help matplotlib to point the where pyGTK is or go around 
the problem with another backend?


Thanks,
Nino Hello,
I recently upgraded to Enthought python 2.6 an so I have now matplotlib 
0.99.3
My scripts now no longer seem to find the pyGTK since when I run them I 
got this message:


Traceback (most recent call last):
  File ./sed_plotb_v2.py, line 14, in module
from pylab import *
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pylab.py, 
line 1, in module

from matplotlib.pylab import *
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pylab.py, 
line 247, in module

from matplotlib.pyplot import *
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pyplot.py, 
line 78, in module

new_figure_manager, draw_if_interactive, show = pylab_setup()
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/__init__.py, 
line 25, in pylab_setup

globals(),locals(),[backend_name])
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py, 
line 10, in module
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, 
FigureCanvasGTK,\
  File 
/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py, 
line 11, in module

raise ImportError(Gtk* backend requires pygtk to be installed.)
ImportError: Gtk* backend requires pygtk to be installed.


is any way to help matplotlib to point the where pyGTK is or go around 
the problem with another backend?

Changing the matplotlibrc to TKAgg works fine though.

Thanks,
Nino

--

Antonino Cucchiara, PhD
Postdoctoral Scholar
Lawrence Berkeley National Lab
UC Berkeley
website: www.astro.psu.edu/~cucchiara/

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problem with histogram

2008-09-08 Thread Antonino Cucchiara
Yes, I did indeed.
Is it sufficient replace the matplotlib directory under the scisoft/ 
with the one available from the site (0.98.0) to update it?
I also noticed that the available Fink package is also the 
matplotlib-0.91.0.

Thanks,
Nino

Manuel Metz wrote:
 Antonino Cucchiara wrote:
   
 Hello list,
 I am trying to run the histogram_demo_extended.py on my mac 10.5.
 I installed matplotlib through the scisoft package.
 The normal hist command works fine but when I tried to use align or 
 histtype keyward I get this kind of error:

 [Macintosh-2:~/optional/examples/pylab_examples] nino% 
 ./histogram_demo_extended.py 
 Traceback (most recent call last):
   File ./histogram_demo_extended.py, line 15, in module
 n, bins, patches = P.hist(x, 50, normed=1, histtype='stepfilled')
   File 
 /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pyplot.py,
  
 line 1633, in hist
 ret =  gca().hist(*args, **kwargs)
   File 
 /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py,
  
 line 5064, in hist
 p.update(kwargs)
   File 
 /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.py,
  
 line 394, in update
 raise AttributeError('Unknown property %s'%k)
 AttributeError: Unknown property histtype

 Can someone give me any advice?
 Thanks a lot in advance.

 nino

 

 I guess that you installed matplotlib v0.91.x via scisoft !? The keyword 
 histtype was introduced in 0.98.0, so you can't use it on your system.

 Manuel

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   


-- 

Antonino Cucchiara
PhD candidate
Department of AstronomyAstrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Antonino Cucchiara
Hi,
I have some graphs with lower and upper limits. I found a couple of 
ideas online, but nothing like plotting symbols like arrows.
I am using the mathtex upperarrow symbol but it is quite unconfortable 
positioning the tex character in the righ X-Y position.
Do you know if there is an easier way to plot arrows as markers?

Thanks,
Nino

-- 

Antonino Cucchiara
PhD candidate
Department of AstronomyAstrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Antonino Cucchiara
Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino

Michael Droettboom wrote:
 It looks like matplotlib was built for a different version of iconv than 
 what you have on your machine.  This may be a scisoft packaging problem, 
 you may want to bring this question to their attention.  Perhaps the 
 version of OSX that scisoft was built on/for is different than what 
 you're running it on.

 ImportError: 
 dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so,
  
 2): Library not loaded: /usr/lib/libiconv.2.dylib
   Referenced from: 
 /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
   Reason: Incompatible library version: _backend_gdk.so requires version 
 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

 Cheers,
 Mike

 Antonino Cucchiara wrote:
   
 Hi Mike,
 I re-install the astronomy scisoft package and now the segmentation 
 fault is not anymore present when I import matplotlib.mathtext.
 But when I import pylab I have the following error.
 I think it's something related with my backend choise. I tried to 
 change all the GUI possibilities in my matplotlibrc file but the error 
 is still present.
 I attached the gdb python output (I don't know if it helps) and the 
 output of my import pylab command



 Michael Droettboom wrote:
 
 We need some more information.

 Can you set verbose.level to debug-annoying in your 
 ~/.matplotlib/matplotlibrc file?

 Also, if you have the development tools (XCode) installed on your 
 mac, can you run python in gdb?

   
 gdb python
 
 GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and 
 you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for 
 details.
 This GDB was configured as i386-redhat-linux-gnu...Using host 
 libthread_db library /lib/tls/libthread_db.so.1.

 (gdb) run -c import pylab

 ... and send us the output...

 Cheers,
 Mike


 Antonino Cucchiara wrote:
   
 Hello,
 I am experiencing a problem recently on my Mac OsX.
 When I try to import mathplotlib.mathtext or pylab I received a 
 segmentation fault error.

 It wasn't like that before, and I recently update my matplotlib and 
 scipy via fink.
 It worked fine few weeks ago.

 I hope someone can help me.
 Thanks,
 Nino


 - 

 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save 
 $100. Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
  

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   
 
 

   


-- 

Antonino Cucchiara
PhD candidate
Department of AstronomyAstrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Antonino Cucchiara

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation 
fault is not anymore present when I import matplotlib.mathtext.

But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change 
all the GUI possibilities in my matplotlibrc file but the error is still 
present.
I attached the gdb python output (I don't know if it helps) and the 
output of my import pylab command




Michael Droettboom wrote:

We need some more information.

Can you set verbose.level to debug-annoying in your 
~/.matplotlib/matplotlibrc file?


Also, if you have the development tools (XCode) installed on your mac, 
can you run python in gdb?


 gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and 
you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for 
details.
This GDB was configured as i386-redhat-linux-gnu...Using host 
libthread_db library /lib/tls/libthread_db.so.1.


(gdb) run -c import pylab

... and send us the output...

Cheers,
Mike


Antonino Cucchiara wrote:

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a 
segmentation fault error.


It wasn't like that before, and I recently update my matplotlib and 
scipy via fink.

It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino


- 

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save 
$100. Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 


___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  





--

Antonino Cucchiara
PhD candidate
Department of AstronomyAstrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/



gdb.out
Description: Binary data
Python 2.5.1 (r251:54863, Sep 20 2007, 12:35:05) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type help, copyright, credits or license for more information.

 import pylab
Traceback (most recent call last):
  File stdin, line 1, in module
  File 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py,
 line 1, in module
from matplotlib.pylab import *
  File 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py,
 line 292, in module
from matplotlib.pyplot import *
  File 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pyplot.py,
 line 37, in module
new_figure_manager, draw_if_interactive, show = pylab_setup()
  File 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/__init__.py,
 line 24, in pylab_setup
globals(),locals(),[backend_name])
  File 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py,
 line 21, in module
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
  File 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_gdk.py,
 line 29, in module
from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
ImportError: 
dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so,
 2): Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
  Reason: Incompatible library version: _backend_gdk.so requires version 7.0.0 
or later, but libiconv.2.dylib provides version 5.0.0
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Antonino Cucchiara
Thanks,
I just had to replace the /usr/lib/libiconv.2.dylib with the one I have 
in  /sw/lib/ directory .
Now the GTK, GTKAgg backend work.

Nino


Michael Droettboom wrote:
 You could try rebuilding matplotlib yourself.  There are some OS-X 
 directions here:

 http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html

 This may mean, however, that it won't play nice with other parts of 
 scisoft.  But this really is a matter of how and where scisoft was 
 built (which I don't know) and where you're running it.

 Cheers,
 Mike

 Antonino Cucchiara wrote:
 Is there anything I can do to update it by myself in the meanwhile?
 Thanks,
 Nino

 Michael Droettboom wrote:
 It looks like matplotlib was built for a different version of iconv 
 than what you have on your machine.  This may be a scisoft packaging 
 problem, you may want to bring this question to their attention.  
 Perhaps the version of OSX that scisoft was built on/for is 
 different than what you're running it on.

 ImportError: 
 dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so,
  
 2): Library not loaded: /usr/lib/libiconv.2.dylib
   Referenced from: 
 /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
  

   Reason: Incompatible library version: _backend_gdk.so requires 
 version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

 Cheers,
 Mike

 Antonino Cucchiara wrote:
  
 Hi Mike,
 I re-install the astronomy scisoft package and now the segmentation 
 fault is not anymore present when I import matplotlib.mathtext.
 But when I import pylab I have the following error.
 I think it's something related with my backend choise. I tried to 
 change all the GUI possibilities in my matplotlibrc file but the 
 error is still present.
 I attached the gdb python output (I don't know if it helps) and the 
 output of my import pylab command



 Michael Droettboom wrote:
   
 We need some more information.

 Can you set verbose.level to debug-annoying in your 
 ~/.matplotlib/matplotlibrc file?

 Also, if you have the development tools (XCode) installed on your 
 mac, can you run python in gdb?

 
 gdb python
 
 GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, 
 and you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for 
 details.
 This GDB was configured as i386-redhat-linux-gnu...Using host 
 libthread_db library /lib/tls/libthread_db.so.1.

 (gdb) run -c import pylab

 ... and send us the output...

 Cheers,
 Mike


 Antonino Cucchiara wrote:
 
 Hello,
 I am experiencing a problem recently on my Mac OsX.
 When I try to import mathplotlib.mathtext or pylab I received a 
 segmentation fault error.

 It wasn't like that before, and I recently update my matplotlib 
 and scipy via fink.
 It worked fine few weeks ago.

 I hope someone can help me.
 Thanks,
 Nino


 -
  

 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save 
 $100. Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
  

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   
 

   





-- 

Antonino Cucchiara
PhD candidate
Department of AstronomyAstrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] segmentation fault with pylab

2008-05-07 Thread Antonino Cucchiara
Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a 
segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and 
scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users