Hi Jeff,
thanks for the hint, I just need to import one personal GMT file maked a time 
ago and used in a plotting project based on GMT, which I try to convert to 
matplotlib.
Now I have a little problem to plot a basemap with subplots. Trying to use 
contour_demo.py mixed with hist.py to have a map with contours and under it 
an histogram of values, I can't set the colorbar else I loose the map. I 
think I have a problem with axes but I'm not very familar with subplotting.
Have you an idea of how can I do that?

Le Vendredi 07 Juillet 2006 13:53, Jeff Whitaker a écrit :
> Lionel Roubeyrie wrote:
> > Hi all,
> > Is it possible to import colormap file from GMT (.cpt) to basemap? If yes
> > how can we do that?
> > Thanks
>
> Lionel:  I had included the GMT colormaps in matplotlib, but had to take
> them out because of licensing issues.  If you want to put them back in,
> put the attached file in your matplotlib install directory
> <sys.prefix>/lib/python2.4/site-packages/matplotlib. Then use a text
> editor to add the following lines to _cm.py (in the same directory)
>
> from gmt_cm import addcmaps
> addcmaps(datad)
>
> right above the line
>
> # reverse all the colormaps.
>
> This will give you the colormaps
>
> GMT_gebco
> GMT_globe
> GMT_haxby
> GMT_no_green
> GMT_ocean
> GMT_polar
> GMT_red2green
> GMT_relief
> GMT_seis
> GMT_wysiwyg
>
> and the corresponding reversed colormaps (with '_r' appended to the name).
>
>
> -Jeff

-- 
Lionel Roubeyrie - [EMAIL PROTECTED]
LIMAIR
http://www.limair.asso.fr

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to