Changeset 5753 for qesdi/geoplot
- Timestamp:
- 23/09/09 09:28:37 (10 years ago)
- Location:
- qesdi/geoplot/trunk/lib/geoplot
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
qesdi/geoplot/trunk/lib/geoplot/config.ini
r5699 r5753 48 48 numContourLines=10 49 49 contourLabelInterval=1 50 contourLineWidth=0.5 50 51 51 52 [Defaults:GridDrawer] -
qesdi/geoplot/trunk/lib/geoplot/contour_drawer.py
r5735 r5753 33 33 """ 34 34 35 def __init__(self, numContourLines=10, contourLabelInterval=1 ):35 def __init__(self, numContourLines=10, contourLabelInterval=1, contourLineWidth=0.5): 36 36 """ 37 37 Constructs a ContourDrawer object … … 40 40 self.numContourLines = numContourLines 41 41 self.contourLabelInterval = contourLabelInterval 42 self.contourLineWidth = contourLineWidth 42 43 self._contourFont = config['Fonts']['ContourLines'] 43 44 … … 87 88 cmap=cmap, 88 89 origin='lower', 89 linewidths= 0.5,90 linewidths=self.contourLineWidth, 90 91 norm=normalize, 91 92 extend='neither', -
qesdi/geoplot/trunk/lib/geoplot/layer_drawer_coastline.py
r5735 r5753 17 17 """ 18 18 19 def __init__(self, projection='latlon', resolution='i', transparent=False, drawRivers=False): 19 def __init__(self, 20 projection='latlon', 21 resolution='i', 22 transparent=False, 23 drawRivers=False, 24 coastlineColour='black', 25 coastlineWidth=0.5): 26 27 # incase the coastlineColour isn't valid default to black 28 self._coastlineColour = 'black' 29 30 self.coastlineColour = coastlineColour 31 self.coastlineWidth = 0.5 20 32 21 33 LayerDrawerBase.__init__(self, transparent=transparent, 22 34 projection=projection, 23 resolution=resolution) 35 resolution=resolution, 36 ) 24 37 25 self._coastlineColour = 'black'26 38 27 39 # must be done after the base constructor or the _mapFactory won't be … … 38 50 #draw the map onto the axes 39 51 map.basemap.drawcoastlines(ax = axes, 40 linewidth= 0.5,52 linewidth=self.coastlineWidth, 41 53 color=self.coastlineColour, 42 54 antialiased=0, … … 50 62 51 63 #map.basemap.fillcontinents(color='coral',lake_color=None, ax=axes) 52 #map.basemap.drawparallels([10,20,30,40],ax=axes)64 #map.basemap.drawparallels([10,20,30,40],ax=axes) 53 65 #map.basemap.bluemarble(ax=axes) 54 66 -
qesdi/geoplot/trunk/lib/geoplot/layer_drawer_contour.py
r5710 r5753 15 15 def __init__(self, cdmsVar, gridType='latlon', projection='latlon', cmap = None, cmapRange=(None,None), 16 16 transparent=False, numLines=10, fontSize='medium', labelInterval=1, 17 intervalColourbar=False, 18 intervalNames=None): 17 intervalColourbar=False, intervalNames=None, lineWidth=0.5): 19 18 20 19 self._contourDrawer = ContourDrawer() … … 23 22 self.fontSize = fontSize 24 23 self.labelInterval =labelInterval 24 self.lineWidth = lineWidth 25 25 26 26 LayerDrawerBase.__init__(self, gridType=gridType, transparent=transparent, cmap=cmap, cmapRange=cmapRange) … … 74 74 75 75 labelInterval = property(__get_labelInterval, __set_labelInterval) 76 77 def __set_lineWidth(self, value): 78 self._contourDrawer.contourLineWidth = value 79 80 def __get_lineWidth(self): 81 return self._contourDrawer.contourLineWidth 82 83 lineWidth = property(__get_lineWidth, __set_lineWidth) 76 84 77 85
Note: See TracChangeset
for help on using the changeset viewer.