[Matplotlib-users] Ubuntu Hardy and matplotlib

2008-05-30 Thread Marjolaine Rouault
Hi,

I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 
8.04. After I install the python-matplotlib package, I am not able to list my 
modules in the help() section and I can also not import pylab. As anyone ha 
that problem and found a solution?

Thanks.



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Legend for a scatter plot based on symbols

2008-05-30 Thread Matthieu Brucher
Hi,

I'd like to plot three scatter plots on the same figure, each with different
symbols. Associated to these scatter plots, I'd like to put a legend. For
the moment, the legend is based on one of the color of the associated
scatter plot, but it is not relevant. Indeed, the colors are not identical
inside one scatter plot, so the displayed color is discriminating.
So I'd like to display the symbol (circle, square, cross, ...) instead of
the color rectangle. Is it possible ?

Thanks,

Matthieu
-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] numerix backed??

2008-05-30 Thread keith.briggs
I got this message:

 /usr/lib64/python2.5/site-packages/matplotlib/numerix/__init__.py:65: 
 DeprecationWarning: numarray use as a numerix backed for matplotlib is 
 deprecated

What does numerix backed mean?

Keith



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] numerix backed??

2008-05-30 Thread Darren Dale
On Friday 30 May 2008 6:05:05 am [EMAIL PROTECTED] wrote:
 I got this message:
  /usr/lib64/python2.5/site-packages/matplotlib/numerix/__init__.py:65:
  DeprecationWarning: numarray use as a numerix backed for matplotlib is
  deprecated

 What does numerix backed mean?

Its a typo, it should read backend.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Installation of 0.91.2 maintenance + Tkinter developpement packages

2008-05-30 Thread Johan Mazel
Hi
I'm trying to install the 0.91.2 maintenance from the SVN on a Ubuntu 8.04
system.
But I have an error about Tkinter during the checkin of dependancies :

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.15beta5
   Tkinter: no
* Tkinter present, but header files are not found.
* You may need to install development packages.

For all the other dependancies, there is no problem at all.

When I type  python setup.py build, I got this error at the end :

gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de ce
type
gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de ce
type
error: Command gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.5/CXX/cxx_extensions.o
failed with exit status 1

I'm guessing that the building error is directly related to the fact that I
don't have the developpement package for tkinter.
The main problem is that I can't find this package through Synaptic my
package manager.
If you have any idea of where this problem comes from, please, I'm
listening.

Thanks for the help.
Johan Mazel
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Ubuntu Hardy and matplotlib

2008-05-30 Thread Michael Droettboom
I don't see this myself.  Are you running the correct Python (not 
accidentally running Python2.4, for example)?  Do you have a 
/usr/lib/python2.5/site-packages/matplotlib directory?  What is the 
exact error message when you import pylab?

Cheers,
Mike

Marjolaine Rouault wrote:
 Hi,

 I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 
 8.04. After I install the python-matplotlib package, I am not able to list my 
 modules in the help() section and I can also not import pylab. As anyone ha 
 that problem and found a solution?

 Thanks.



   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation of 0.91.2 maintenance + Tkinter developpement packages

2008-05-30 Thread Michael Droettboom
It seems you have two unrelated errors here.

The first is that Hardy changed how Tkinter is packaged so that 
matplotlib can't find it.  We do not have a workaround for this on the 
0.91.x maintenance branch.  You will need to apply this patch to 
setupext.py:

+@@ -960,6 +960,9 @@ def add_tk_flags(module):
+ if not os.path.exists(tk_inc):
+ tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
+   '../../include'))
++if not os.path.exists(tk_inc):
++tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
++  '../../../include/tcl' + 
tk_ver))
+
+ if ((not os.path.exists(os.path.join(tk_inc,'tk.h'))) and
+ os.path.exists(os.path.join(tcl_inc,'tk.h'))):
+

We have a better fix on the trunk, but it requires more testing.

The second error typically occurs when g++ is not installed.  Try sudo 
apt-get install g++.

Cheers,
Mike

Johan Mazel wrote:
 Hi
 I'm trying to install the 0.91.2 maintenance from the SVN on a Ubuntu 
 8.04 system.
 But I have an error about Tkinter during the checkin of dependancies :

 OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.15beta5
Tkinter: no
 * Tkinter present, but header files are not found.
 * You may need to install development packages.

 For all the other dependancies, there is no problem at all.

 When I type  python setup.py build, I got this error at the end :

 gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier 
 de ce type
 gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier 
 de ce type
 error: Command gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv 
 -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 
 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c 
 CXX/cxx_extensions.cxx -o 
 build/temp.linux-i686-2.5/CXX/cxx_extensions.o failed with exit status 1

 I'm guessing that the building error is directly related to the fact 
 that I don't have the developpement package for tkinter.
 The main problem is that I can't find this package through Synaptic my 
 package manager.
 If you have any idea of where this problem comes from, please, I'm 
 listening.

 Thanks for the help.
 Johan Mazel
 

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 

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

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Ubuntu Hardy and matplotlib

2008-05-30 Thread Marjolaine Rouault
hi

I am running  python 2.5 and installing the matplotlib using synaptic so it is 
installing the correct version (I assume). After installing matplotlib, In the 
help(), this is what i get when asking for the modules liist:

  File stdin, line 1, in module
  File /usr/lib/python2.5/site.py, line 342, in __call__
return pydoc.help(*args, **kwds)
  File /usr/lib/python2.5/pydoc.py, line 1649, in __call__
self.interact()
  File /usr/lib/python2.5/pydoc.py, line 1667, in interact
self.help(request)
  File /usr/lib/python2.5/pydoc.py, line 1683, in help
elif request == 'modules': self.listmodules()
  File /usr/lib/python2.5/pydoc.py, line 1804, in listmodules
ModuleScanner().run(callback)
  File /usr/lib/python2.5/pydoc.py, line 1855, in run
for importer, modname, ispkg in pkgutil.walk_packages():
  File /usr/lib/python2.5/pkgutil.py, line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
  File /usr/lib/python2.5/pkgutil.py, line 110, in walk_packages
__import__(name)
  File /usr/lib/python2.5/site-packages/matplotlib/config/__init__.py, line 
5, in module
from rcparams import rc
  File /usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py, line 
117, in module
rcParams = rc_params()
  File /usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py, line 
49, in rc_params
fname = get_config_file()
  File /usr/lib/python2.5/site-packages/matplotlib/config/cutils.py, line 
181, in get_config_file
path =  get_data_path() # guaranteed to exist or raise
  File /usr/lib/python2.5/site-packages/matplotlib/config/verbose.py, line 
74, in wrapper
ret = func(*args, **kwargs)
  File /usr/lib/python2.5/site-packages/matplotlib/config/cutils.py, line 
129, in _get_data_path_cached
defaultParams['datapath'][0] = _get_data_path()
  File /usr/lib/python2.5/site-packages/matplotlib/config/cutils.py, line 
125, in _get_data_path
raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files


if I try import pylab, this is what I get:

Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.5/site-packages/pylab.py, line 1, in module
from matplotlib.pylab import *
  File /usr/lib/python2.5/site-packages/matplotlib/pylab.py, line 208, in 
module
from matplotlib import mpl  # pulls in most modules
  File /usr/lib/python2.5/site-packages/matplotlib/mpl.py, line 4, in module
from matplotlib import axes
  File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line 18, in 
module
from matplotlib import dates as mdates
  File /usr/lib/python2.5/site-packages/matplotlib/dates.py, line 91, in 
module
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
ImportError: No module named dateutil.rrule



 
 Michael Droettboom [EMAIL PROTECTED] 05/30/08 2:11 PM  
I don't see this myself.  Are you running the correct Python (not 
accidentally running Python2.4, for example)?  Do you have a 
/usr/lib/python2.5/site-packages/matplotlib directory?  What is the 
exact error message when you import pylab?

Cheers,
Mike

Marjolaine Rouault wrote:
 Hi,

 I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 
 8.04. After I install the python-matplotlib package, I am not able to list my 
 modules in the help() section and I can also not import pylab. As anyone ha 
 that problem and found a solution?

 Thanks.



   

-- 




-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation of 0.91.2 maintenance + Tkinter developpement packages

2008-05-30 Thread Michael Droettboom
This is in diff format, so it indicates that it is around line 960.  The 
part to add is this:

   if not os.path.exists(tk_inc):
tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
  '../../../include/tcl' + tk_ver))

right after this:

  if not os.path.exists(tk_inc):
 tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
   '../../include'))

Cheers,
Mike

Johan Mazel wrote:
 Hi
 Where am I supposed to copy this piece of code in setupext.py ? At the 
 begining ? At the end ?
 Thanks for the answer.
 Johan Mazel



 2008/5/30 Michael Droettboom [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

 It seems you have two unrelated errors here.

 The first is that Hardy changed how Tkinter is packaged so that
 matplotlib can't find it.  We do not have a workaround for this on
 the 0.91.x maintenance branch.  You will need to apply this patch
 to setupext.py:

 +@@ -960,6 +960,9 @@ def add_tk_flags(module):
 + if not os.path.exists(tk_inc):
 + tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
 +   '../../include'))
 ++if not os.path.exists(tk_inc):
 ++tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
 ++  '../../../include/tcl'
 + tk_ver))
 ++ if ((not
 os.path.exists(os.path.join(tk_inc,'tk.h'))) and
 + os.path.exists(os.path.join(tcl_inc,'tk.h'))):
 +

 We have a better fix on the trunk, but it requires more testing.

 The second error typically occurs when g++ is not installed.  Try
 sudo apt-get install g++.

 Cheers,
 Mike

 Johan Mazel wrote:

 Hi
 I'm trying to install the 0.91.2 maintenance from the SVN on a
 Ubuntu 8.04 system.
 But I have an error about Tkinter during the checkin of
 dependancies :

 OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.15beta5
   Tkinter: no
* Tkinter present, but header files are
 not found.
* You may need to install development
 packages.

 For all the other dependancies, there is no problem at all.

 When I type  python setup.py build, I got this error at the end :

 gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou
 dossier de ce type
 gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou
 dossier de ce type
 error: Command gcc -pthread -fno-strict-aliasing -DNDEBUG -g
 -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC
 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include
 -I. -I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o
 build/temp.linux-i686-2.5/CXX/cxx_extensions.o failed with
 exit status 1

 I'm guessing that the building error is directly related to
 the fact that I don't have the developpement package for tkinter.
 The main problem is that I can't find this package through
 Synaptic my package manager.
 If you have any idea of where this problem comes from, please,
 I'm listening.

 Thanks for the help.
 Johan Mazel
 
 

 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 
 

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


 -- 
 Michael Droettboom
 Science Software Branch
 Operations and Engineering Division
 Space Telescope Science Institute
 Operated by AURA for NASA



-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Ubuntu Hardy and matplotlib

2008-05-30 Thread Michael Droettboom
I'm somewhat grasping at straws here: the Ubuntu-packaged matplotlib 
works for me on Hardy.

Thanks.  Ubuntu puts the matplotlib data files in a separate package, 
python-matplotlib-data.  That *should* have installed automatically 
alongside python-matplotlib, but you may want to try forcing that:

  sudo apt-get install python-matplotlib-data

If that fails, try reinstalling both python-matplotlib and 
python-matplotlib-data.

  sudo apt-get install --reinstall python-matplotlib

The second error also seems like another instance of the same: the 
python-dateutil package should be installed.

Cheers,
Mike

Marjolaine Rouault wrote:
 hi

 I am running  python 2.5 and installing the matplotlib using synaptic so it 
 is installing the correct version (I assume). After installing matplotlib, In 
 the help(), this is what i get when asking for the modules liist:

   File stdin, line 1, in module
   File /usr/lib/python2.5/site.py, line 342, in __call__
 return pydoc.help(*args, **kwds)
   File /usr/lib/python2.5/pydoc.py, line 1649, in __call__
 self.interact()
   File /usr/lib/python2.5/pydoc.py, line 1667, in interact
 self.help(request)
   File /usr/lib/python2.5/pydoc.py, line 1683, in help
 elif request == 'modules': self.listmodules()
   File /usr/lib/python2.5/pydoc.py, line 1804, in listmodules
 ModuleScanner().run(callback)
   File /usr/lib/python2.5/pydoc.py, line 1855, in run
 for importer, modname, ispkg in pkgutil.walk_packages():
   File /usr/lib/python2.5/pkgutil.py, line 125, in walk_packages
 for item in walk_packages(path, name+'.', onerror):
   File /usr/lib/python2.5/pkgutil.py, line 110, in walk_packages
 __import__(name)
   File /usr/lib/python2.5/site-packages/matplotlib/config/__init__.py, line 
 5, in module
 from rcparams import rc
   File /usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py, line 
 117, in module
 rcParams = rc_params()
   File /usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py, line 
 49, in rc_params
 fname = get_config_file()
   File /usr/lib/python2.5/site-packages/matplotlib/config/cutils.py, line 
 181, in get_config_file
 path =  get_data_path() # guaranteed to exist or raise
   File /usr/lib/python2.5/site-packages/matplotlib/config/verbose.py, line 
 74, in wrapper
 ret = func(*args, **kwargs)
   File /usr/lib/python2.5/site-packages/matplotlib/config/cutils.py, line 
 129, in _get_data_path_cached
 defaultParams['datapath'][0] = _get_data_path()
   File /usr/lib/python2.5/site-packages/matplotlib/config/cutils.py, line 
 125, in _get_data_path
 raise RuntimeError('Could not find the matplotlib data files')
 RuntimeError: Could not find the matplotlib data files


 if I try import pylab, this is what I get:

 Traceback (most recent call last):
   File stdin, line 1, in module
   File /usr/lib/python2.5/site-packages/pylab.py, line 1, in module
 from matplotlib.pylab import *
   File /usr/lib/python2.5/site-packages/matplotlib/pylab.py, line 208, in 
 module
 from matplotlib import mpl  # pulls in most modules
   File /usr/lib/python2.5/site-packages/matplotlib/mpl.py, line 4, in 
 module
 from matplotlib import axes
   File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line 18, in 
 module
 from matplotlib import dates as mdates
   File /usr/lib/python2.5/site-packages/matplotlib/dates.py, line 91, in 
 module
 from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
 ImportError: No module named dateutil.rrule



  
   
 Michael Droettboom [EMAIL PROTECTED] 05/30/08 2:11 PM  
 
 I don't see this myself.  Are you running the correct Python (not 
 accidentally running Python2.4, for example)?  Do you have a 
 /usr/lib/python2.5/site-packages/matplotlib directory?  What is the 
 exact error message when you import pylab?

 Cheers,
 Mike

 Marjolaine Rouault wrote:
   
 Hi,

 I am not managing to ge matplotlib to work with the new Ubuntu realease 
 hardy 8.04. After I install the python-matplotlib package, I am not able to 
 list my modules in the help() section and I can also not import pylab. As 
 anyone ha that problem and found a solution?

 Thanks.



   
 

   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation of 0.91.2 maintenance + Tkinter developpement packages

2008-05-30 Thread Johan Mazel
Atually, I just installed g++ as you were saying and now, it's working.
Thanks for the help.
Johan Mazel

2008/5/30 Michael Droettboom [EMAIL PROTECTED]:

 This is in diff format, so it indicates that it is around line 960.  The
 part to add is this:

  if not os.path.exists(tk_inc):
   tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
 '../../../include/tcl' + tk_ver))

 right after this:

 if not os.path.exists(tk_inc):
tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
  '../../include'))

 Cheers,
 Mike

 Johan Mazel wrote:

 Hi
 Where am I supposed to copy this piece of code in setupext.py ? At the
 begining ? At the end ?
 Thanks for the answer.
 Johan Mazel



 2008/5/30 Michael Droettboom [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:


It seems you have two unrelated errors here.

The first is that Hardy changed how Tkinter is packaged so that
matplotlib can't find it.  We do not have a workaround for this on
the 0.91.x maintenance branch.  You will need to apply this patch
to setupext.py:

+@@ -960,6 +960,9 @@ def add_tk_flags(module):
+ if not os.path.exists(tk_inc):
+ tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
+   '../../include'))
++if not os.path.exists(tk_inc):
++tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
++  '../../../include/tcl'
+ tk_ver))
++ if ((not
os.path.exists(os.path.join(tk_inc,'tk.h'))) and
+ os.path.exists(os.path.join(tcl_inc,'tk.h'))):
+

We have a better fix on the trunk, but it requires more testing.

The second error typically occurs when g++ is not installed.  Try
sudo apt-get install g++.

Cheers,
Mike

Johan Mazel wrote:

Hi
I'm trying to install the 0.91.2 maintenance from the SVN on a
Ubuntu 8.04 system.
But I have an error about Tkinter during the checkin of
dependancies :

OPTIONAL BACKEND DEPENDENCIES
   libpng: 1.2.15beta5
  Tkinter: no
   * Tkinter present, but header files are
not found.
   * You may need to install development
packages.

For all the other dependancies, there is no problem at all.

When I type  python setup.py build, I got this error at the end :

gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou
dossier de ce type
gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou
dossier de ce type
error: Command gcc -pthread -fno-strict-aliasing -DNDEBUG -g
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include
-I. -I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o
build/temp.linux-i686-2.5/CXX/cxx_extensions.o failed with
exit status 1

I'm guessing that the building error is directly related to
the fact that I don't have the developpement package for tkinter.
The main problem is that I can't find this package through
Synaptic my package manager.
If you have any idea of where this problem comes from, please,
I'm listening.

Thanks for the help.
Johan Mazel

  


  -
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/

  

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


--Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA



 --
 Michael Droettboom
 Science Software Branch
 Operations and Engineering Division
 Space Telescope Science Institute
 Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Ubuntu Hardy and matplotlib

2008-05-30 Thread Georg Holzmann
Hallo!

 I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 
 8.04. After I install the python-matplotlib package, I am not able to list my 
 modules in the help() section and I can also not import pylab. As anyone ha 
 that problem and found a solution?

I had the same problem today.
However, in my case gtk was missing and I fixed it with installing
apt-get install python-gtk2

LG
Georg

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Robinson projection imshow out of bounds and different latitude limits

2008-05-30 Thread Sebastian Krieger

Dear all!

I would like to ask two questions: one concerning imshow with the 
Robinson projection and the second about the latitude limits for the 
same map projection.


First, I am trying to make a Robinson projection map using imshow 
instead of contourf as described in the Basemap documentation. I 
modified the script as follows:


   #--
   from matplotlib.toolkits.basemap import Basemap, shiftgrid
   from pylab import load, meshgrid, title, arange, show, cm, pi
   #
   # read in topo data (on a regular lat/lon grid)
   etopo = load('etopo20data.gz')
   lons  = load('etopo20lons.gz')
   lats  = load('etopo20lats.gz')
   #
   # create Basemap instance for Robinson projection.
   m = Basemap(projection='robin',lon_0=0.5*(lons[0]+lons[-1]))
   #
   # compute native map projection coordinates for lat/lon grid.
   etopo, lons = shiftgrid(180., etopo, lons, start=False)
   x, y = m(*meshgrid(lons,lats))
   dx = 2.*pi*m.rmajor/len(lons)
   nx = int((m.xmax-m.xmin)/dx)+1; ny = int((m.ymax-m.ymin)/dx)+1
   dat, x, y = m.transform_scalar(etopo, lons, lats, nx, ny, returnxy=True)
   #
   # make filled contour plot.
   im = m.imshow(dat, cmap=cm.jet)
   m.drawcoastlines() # draw coastlines
   m.drawmapboundary() # draw a line around the map region
   m.drawparallels(arange(-90.,120.,30.),labels=[1,0,0,0]) # draw parallels
   m.drawmeridians(arange(0.,420.,60.),labels=[0,0,0,1]) # draw meridians
   title('Robinson Projection') # add a title
   show()
   #--


The result looks as I would expect, except that some data is plot 
outside of the map boundaries. Using another projection as the 
Orthographic for example, this problem doesn't happen. Am I doing 
something wrong?


Second, I work with Topex/POSEIDON and Jason-1 sea surface height 
anomalies datasets where the latitudes range from about 67.5S to 67.5N. 
Outside these limits hopefully its blank, as anyone would expect. 
Aesthetically I find it more appealing if I could limit my map 
boundaries to these limits, or even lower limits if I zoom the 
equatorial region. Has anyone ever tried to do this?


Thank's in advance and kind regards,
Sebastian
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users