@@ -167,12 +167,15 @@ def read(self, files, description='', centroids=None, var_names=None):
167167 var_list ):
168168 self .append (self ._read_one (file , haz_type , desc , centr , var ))
169169
170- def plot_rp_intensity (self , return_periods = (25 , 50 , 100 , 250 ), orig = False ):
170+ def plot_rp_intensity (self , return_periods = (25 , 50 , 100 , 250 ), orig = False ,
171+ ** kwargs ):
171172 """Compute and plot hazard intensity maps for different return periods.
172173
173174 Parameters:
174175 return_periods (tuple(int), optional): return periods to consider
175176 orig (bool, optional): if true, only historical events considered
177+ kwargs (optional): arguments for pcolormesh matplotlib function
178+ used in event plots
176179
177180 Returns:
178181 matplotlib.figure.Figure, matplotlib.axes._subplots.AxesSubplot,
@@ -182,9 +185,9 @@ def plot_rp_intensity(self, return_periods=(25, 50, 100, 250), orig=False):
182185 colbar_name = 'Wind intensity (' + self .units + ')'
183186 title = list ()
184187 for ret in return_periods :
185- title .append ('Return period ' + str (ret ))
188+ title .append ('Return period: ' + str (ret ) + ' years' )
186189 fig , axis = plot .geo_im_from_array (inten_stats , self .centroids .coord , \
187- colbar_name , title )
190+ colbar_name , title , ** kwargs )
188191 return fig , axis , inten_stats
189192
190193 def plot_intensity (self , event = None , centr = None , ** kwargs ):
0 commit comments