Re: [Matplotlib-users] Problem in svn install

2009-09-13 Thread davide lasagna
Thanks,
I thougth that this could be the problem. Actually i fixed it by myself.
Thanks anyway.

Cheers

Davide
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem in svn install

2009-09-12 Thread davide lasagna
Hi everybody,

I have a problem in building matplotlib from svn sources. Here is the output
of the build process.


###
smif1...@ubuntu [14:11:05] ~/cvs/matplotlib :sudo python setupegg.py develop

BUILDING MATPLOTLIB
matplotlib: 1.0.svn
python: 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)  [GCC
4.3.3]
  platform: linux2

REQUIRED DEPENDENCIES
 numpy: 1.2.1
 freetype2: 9.20.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.27
   Tkinter: no
* TKAgg requires Tkinter
  wxPython: 2.8.9.1
* WxAgg extension not required for wxPython >= 2.8
pkg-config: looking for pygtk-2.0 gtk+-2.0
* Package pygtk-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'pygtk-2.0' found
* You may need to install 'dev' package(s) to
* provide header files.
  Gtk+: no
* Could not find Gtk+ headers in any of
* '/usr/local/include', '/usr/include', '.'
   Mac OS X native: no
Qt: no
   Qt4: no
 Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
  datetime: present, version unknown
  dateutil: matplotlib will provide
  pytz: 2008c

OPTIONAL USETEX DEPENDENCIES
dvipng: 1.11
   ghostscript: 8.64
 latex: 3.141592
   pdftops: 0.10.5

[Edit setup.cfg to suppress the above messages]

pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay', 'dateutil', 'dateutil/zoneinfo']
running develop
running egg_info
writing lib/matplotlib.egg-info/PKG-INFO
writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt
writing top-level names to lib/matplotlib.egg-info/top_level.txt
writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt
writing entry points to lib/matplotlib.egg-info/entry_points.txt
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.6 -c src/ft2font.cpp -o
build/temp.linux-i686-2.6/src/ft2font.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
#

Any help is appreciated.

Cheers

Davide
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread davide lasagna
Yes,
That did it. The partition had to be mounted with option
execin /etc/fstab!!
Thanks.

Cheers

Davide


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


Re: [Matplotlib-users] problem with svn install (Davide Lasagna)

2009-07-22 Thread davide lasagna
Well,
actually i'm using Ubuntu  at work on a virtual machine, and the svn copy is
in a partition mounted at boot by a line in /etc/fstab.
If i remember correctly this filesystem is mounted with options users. I'm
at home now, i'll try with the exec option tomorrow.
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] problem with svn install

2009-07-22 Thread davide lasagna
Hi all,
I have a problem with an svn install.
I've followed the instruciont on mpl website, that is:

$ svn co 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib 
matplotlib
$ cd matplotlib
$ python setupegg.py develop

Please note that i've run the last command with sudo as i'm explicitly asked to 
do so.

Then if  i run this simple test script: 

from pylab import *
plot([1,2,3])
show()

from the command line as

python test.py --verbose-helpful

i get thise output:

dav...@davide-desktop:~$ python test.py --verbose-helpful
$HOME=/home/davide
CONFIGDIR=/home/davide/.matplotlib
matplotlib data path /home/davide/partizione/matplotlib/lib/matplotlib/mpl-data
loaded rc file 
/home/davide/partizione/matplotlib/lib/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.98.6svn
verbose.level helpful
interactive is False
units is False
platform is linux2
Traceback (most recent call last):
  File "mio", line 1, in 
from pylab import *
  File "/home/davide/partizione/matplotlib/lib/pylab.py", line 1, in 
from matplotlib.pylab import *
  File "/home/davide/partizione/matplotlib/lib/matplotlib/pylab.py", line 206, 
in 
from matplotlib import mpl  # pulls in most modules
  File "/home/davide/partizione/matplotlib/lib/matplotlib/mpl.py", line 1, in 

from matplotlib import artist
  File "/home/davide/partizione/matplotlib/lib/matplotlib/artist.py", line 5, 
in 
from transforms import Bbox, IdentityTransform, TransformedBbox, 
TransformedPath
  File "/home/davide/partizione/matplotlib/lib/matplotlib/transforms.py", line 
34, in 
from matplotlib._path import affine_transform
ImportError: /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed 
to map segment from shared object: Operation not permitted

Could it be that i've installed in the wrong directory? If yes how can i cope 
with this?
Thanks in advance for any help.


Davide








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


Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-22 Thread davide lasagna
Thanks Eric for pointing out this. However i've found that psd and
specgram plot 10*log10*(Pxx/max(Pxx)), so i'll have a range from 0 db
down. 
Anyway, what do you mean by "should not be axes method"?
Do you mean using the array output of specgram and psd and plotting that
result by myself?

Cheers

Davide
On Tue, 2009-07-21 at 09:12 -1000, Eric Firing wrote:
> davide lasagna wrote:
> > Hello everybody,
> > this is my first post in this list. 
> > 
> > I'm plotting a spectrogram with
> > 
> > Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000)
> > 
> > and i want to add a colorbar with
> > 
> > colorbar()
> > 
> > 
> > The problem is that the color scale seems to be wrong with respect to
> > the data in Pxx, i.e. Pxx is of the order of 1e-2 while in the colorbar
> > i have tick values spanning from -20 to -180. What is the problem??
> 
> specgram and psd plot power in decibels: 10*log10(Pxx).
> 
> Because they involve heavy computation and application-specific choices, 
> like the decibel scale, they really should not be axes methods.
> 
> You can make a function plot the spectrogram however you like by looking 
> at the source code in the Axes.specgram method (the pyplot specgram 
> function is just a thin wrapper for this method), which is using 
> mlab.specgram to do the calculation and is then just scaling and plotting.
> 
> Eric
> 
> 
> > 
> > Thanks in advance!
> > 
> > 
> > Davide
> > 
> > 
> > --
> > Enter the BlackBerry Developer Challenge  
> > This is your chance to win up to $100,000 in prizes! For a limited time, 
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full prize 
> >  
> > details at: http://p.sf.net/sfu/Challenge
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 


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


[Matplotlib-users] Error with colorbar in specgram plot.

2009-07-20 Thread davide lasagna
Hello everybody,
this is my first post in this list. 

I'm plotting a spectrogram with

Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000)

and i want to add a colorbar with

colorbar()


The problem is that the color scale seems to be wrong with respect to
the data in Pxx, i.e. Pxx is of the order of 1e-2 while in the colorbar
i have tick values spanning from -20 to -180. What is the problem??

Thanks in advance!


Davide


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Colorbar not working with specgram

2009-07-20 Thread davide lasagna

Hello everybody,
this is my first post in this list. 

I'm plotting a spectrogram with

Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000)

and i want to add a colorbar with

colorbar()


The problem is that the color scale seems to be wrong with respect to
the data in Pxx, i.e. Pxx is of the order of 1e-2 while in the colorbar
i have tick values spanning from -20 to -180. What is the problem??

Thanks in advance!


Davide


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users