@@ -40,7 +40,7 @@ def plot_rp_intensity(
40
40
self ,
41
41
return_periods = (25 , 50 , 100 , 250 ),
42
42
axis = None ,
43
- mask_relative_distance = None ,
43
+ mask_distance = None ,
44
44
kwargs_local_exceedance_intensity = None ,
45
45
** kwargs ,
46
46
):
@@ -57,10 +57,10 @@ def plot_rp_intensity(
57
57
axis to use
58
58
kwargs_local_exceedance_intensity: dict
59
59
Dictionary of keyword arguments for the method hazard.local_exceedance_intensity.
60
- mask_relative_distance : float, optional
61
- Relative distance (with respect to maximal map extent in longitude or latitude) to data
62
- points above which plot should not display values . For instance, to only plot values
63
- at the centroids, use mask_relative_distance =0.01. If None, the plot is not masked.
60
+ mask_distance : float, optional
61
+ Only regions are plotted that are closer to any of the data points than this distance,
62
+ relative to overall plot size . For instance, to only plot values
63
+ at the centroids, use mask_distance =0.01. If None, the plot is not masked.
64
64
Default is None.
65
65
kwargs: optional
66
66
arguments for pcolormesh matplotlib function used in event plots
@@ -99,7 +99,7 @@ def plot_rp_intensity(
99
99
title ,
100
100
column_labels ,
101
101
axis = axis ,
102
- mask_relative_distance = mask_relative_distance ,
102
+ mask_distance = mask_distance ,
103
103
** kwargs ,
104
104
)
105
105
return axis , inten_stats .values [:, 1 :].T .astype (float )
@@ -111,7 +111,7 @@ def plot_intensity(
111
111
smooth = True ,
112
112
axis = None ,
113
113
adapt_fontsize = True ,
114
- mask_relative_distance = None ,
114
+ mask_distance = None ,
115
115
** kwargs ,
116
116
):
117
117
"""Plot intensity values for a selected event or centroid.
@@ -135,10 +135,10 @@ def plot_intensity(
135
135
in module `climada.util.plot`)
136
136
axis: matplotlib.axes._subplots.AxesSubplot, optional
137
137
axis to use
138
- mask_relative_distance : float, optional
139
- Relative distance (with respect to maximal map extent in longitude or latitude) to data
140
- points above which plot should not display values . For instance, to only plot values
141
- at the centroids, use mask_relative_distance =0.01. If None, the plot is not masked.
138
+ mask_distance : float, optional
139
+ Only regions are plotted that are closer to any of the data points than this distance,
140
+ relative to overall plot size . For instance, to only plot values
141
+ at the centroids, use mask_distance =0.01. If None, the plot is not masked.
142
142
Default is None.
143
143
kwargs: optional
144
144
arguments for pcolormesh matplotlib function
@@ -165,7 +165,7 @@ def plot_intensity(
165
165
crs_epsg ,
166
166
axis ,
167
167
adapt_fontsize = adapt_fontsize ,
168
- mask_relative_distance = mask_relative_distance ,
168
+ mask_distance = mask_distance ,
169
169
** kwargs ,
170
170
)
171
171
if centr is not None :
@@ -181,7 +181,7 @@ def plot_fraction(
181
181
centr = None ,
182
182
smooth = True ,
183
183
axis = None ,
184
- mask_relative_distance = None ,
184
+ mask_distance = None ,
185
185
** kwargs ,
186
186
):
187
187
"""Plot fraction values for a selected event or centroid.
@@ -205,10 +205,10 @@ def plot_fraction(
205
205
in module `climada.util.plot`)
206
206
axis: matplotlib.axes._subplots.AxesSubplot, optional
207
207
axis to use
208
- mask_relative_distance : float, optional
208
+ mask_distance : float, optional
209
209
Relative distance (with respect to maximal map extent in longitude or latitude) to data
210
210
points above which plot should not display values. For instance, to only plot values
211
- at the centroids, use mask_relative_distance =0.01. If None, the plot is not masked.
211
+ at the centroids, use mask_distance =0.01. If None, the plot is not masked.
212
212
Default is None.
213
213
kwargs: optional
214
214
arguments for pcolormesh matplotlib function
@@ -232,7 +232,7 @@ def plot_fraction(
232
232
col_label ,
233
233
smooth ,
234
234
axis ,
235
- mask_relative_distance = mask_relative_distance ,
235
+ mask_distance = mask_distance ,
236
236
** kwargs ,
237
237
)
238
238
if centr is not None :
@@ -252,7 +252,7 @@ def _event_plot(
252
252
axis = None ,
253
253
figsize = (9 , 13 ),
254
254
adapt_fontsize = True ,
255
- mask_relative_distance = None ,
255
+ mask_distance = None ,
256
256
** kwargs ,
257
257
):
258
258
"""Plot an event of the input matrix.
@@ -274,10 +274,10 @@ def _event_plot(
274
274
axis to use
275
275
figsize: tuple, optional
276
276
figure size for plt.subplots
277
- mask_relative_distance : float, optional
278
- Relative distance (with respect to maximal map extent in longitude or latitude) to data
279
- points above which plot should not display values . For instance, to only plot values
280
- at the centroids, use mask_relative_distance =0.01. If None, the plot is not masked.
277
+ mask_distance : float, optional
278
+ Only regions are plotted that are closer to any of the data points than this distance,
279
+ relative to overall plot size . For instance, to only plot values
280
+ at the centroids, use mask_distance =0.01. If None, the plot is not masked.
281
281
Default is None.
282
282
kwargs: optional
283
283
arguments for pcolormesh matplotlib function
@@ -326,7 +326,7 @@ def _event_plot(
326
326
figsize = figsize ,
327
327
proj = crs_espg ,
328
328
adapt_fontsize = adapt_fontsize ,
329
- mask_relative_distance = mask_relative_distance ,
329
+ mask_distance = mask_distance ,
330
330
** kwargs ,
331
331
)
332
332
0 commit comments