Hi,

An easy way is to use the data from http://www.gadm.org/ and to plot it with 
m.readshapefile()

HTH,

Thom

**********************
Thomas Lecocq

Geologist
Ph.D.Student (Seismology)
Royal Observatory of Belgium
**********************



Date: Wed, 26 Jan 2011 16:03:27 +0800
From: eric.l.2...@gmail.com
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] How to draw a specific country by basemap?



  



    
  
  
    Hi all,

    

    I'm using the Basemap module in matplotlib, it's great to draw a
    world map but for a specific country. Empirically, one can draw its
    own country by specifying the lats and longs like this example:

    http://matplotlib.sourceforge.net/basemap/doc/html/users/geography.html

    
    And you can use the method: drawcontries() to draw the country
    boundries, but all the countries are in the same colour. Does anyone
    know how to highlight a specific country? Thanks in advance.

    

    Eric

    -- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/E/MU/P d+(-) s: a- C++ UL$ P+>++ L++ E++ W++ N+ o+>++ K+++ w !O
M-(+) V-- PS+ PE+ Y+ PGP++ t? 5? X? R+>* tv@ b++++ DI-- D G++ e++>+++@ h*
r !y+
------END GEEK CODE BLOCK------
  


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users                   
                  
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to