Ignore:
Timestamp:
18/09/09 09:57:15 (10 years ago)
Author:
pnorton
Message:

Added the ability to change the coastline colour in the coastline layer drawer. Also fixed a minor problem with the colour bar that was causing problems when unicode is used rather than strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/geoplot/trunk/lib/geoplot/colour_bar.py

    r5710 r5735  
    101101            cmap.set_bad("w")         
    102102         
    103         elif type(self.cmap) == str: 
     103        elif type(self.cmap) in [str, unicode]: 
    104104            cmap = cm.get_cmap(self.cmap) 
    105105            cmap.set_bad("w")      
Note: See TracChangeset for help on using the changeset viewer.