Re: [Matplotlib-users] Compiling on Solaris

2009-11-25 Thread David Trethewey
ooking at that to see what it's doing. It may not be passing the > source file along to the compiler. > > Mike > > David Trethewey wrote: >> I am trying to compile matplotlib on Solaris, I have run into >> problems as below compiling the ft2fonts extension. Anyone

[Matplotlib-users] Compiling on Solaris

2009-11-25 Thread David Trethewey
-I/usr/local/include -I. -I/usr/include/python2.4 -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o cc: No input file specified, no output generated error: command '/usr/lib/python2.4/pycc' failed with exit status 1 -- David Trethewey Institute of Astronomy htt

Re: [Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
Got it working using tkAgg by recompiling matplotlib from source. David On Jan 21 2009, David Trethewey wrote: >I have switched between python2.5 and 2.6, so maybe I've messed up the >installation somehow, and it's not looking for things in the right >directories. > >

Re: [Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
I have switched between python2.5 and 2.6, so maybe I've messed up the installation somehow, and it's not looking for things in the right directories. I fiddled around with the versions of cairo and pycairo, and got them to match but still got errors: >>> import gtk Traceback (most recent call la

Re: [Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
from gtk import _gtk File "/usr/lib64/python2.6/site-packages/cairo/__init__.py", line 1, in from _cairo import * ImportError: /usr/lib64/python2.6/site-packages/cairo/_cairo.so: undefined symbol: cairo_ps_surface_set_eps > > Mike > > David Trethewey wrote

[Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
Although I have python-gtk installed I still get this error message when importing pylab. I'm not sure why. Can anyone enlighten me? >>> from pylab import * Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in from matplotl

Re: [Matplotlib-users] Difficulty with colorbar

2009-01-17 Thread David Trethewey
Managed to solve the problem now. David David Trethewey wrote: > I think I realised what I was doing wrong, I didn't have the imshow() > call beforehand in my program: > > But using the code: > > cax = fig.add_axes([0.85, 0.1, 0.075, 0.8]) > a=oute

Re: [Matplotlib-users] Difficulty with colorbar

2009-01-17 Thread David Trethewey
t a set of axes from 0 to 10 in the x direction and 0 to 100 in y.How do I get rid of the x axis and scale the y axis from 0 to 1. David David Trethewey wrote: > I've been trying to add a colorbar to my figure and have used the > following code; > > cax = axes([0.85, 0.1,

[Matplotlib-users] Difficulty with colorbar

2009-01-17 Thread David Trethewey
I've been trying to add a colorbar to my figure and have used the following code; cax = axes([0.85, 0.1, 0.075, 0.8]) colorbar(cax=cax) as a template (from http://matplotlib.sourceforge.net/examples/pylab_examples/subplots_adjust.html) However I get an error: Traceback (most recent call last)

[Matplotlib-users] Problem with shapelib

2009-01-16 Thread David Trethewey
I've had problems trying to read shapefiles using the matplotlib basemap toolkit I can import the shapelib module without error but when I try to read a shapefile this happens: Traceback (most recent call last): File "C:\Documents and Settings\David\Desktop\cornwall\try_4828.py", line 44, in

[Matplotlib-users] Basemap datasets

2009-01-11 Thread David Trethewey
How do you install the high and full resolution coastline datasets? I've tried simply downloading them from the internet from http://www.soest.hawaii.edu/wessel/gshhs/gshhs.html and copying them into the basemap data directory but this didn't work. David ---