Skip to content

Commit 8e15e6c

Browse files
committed
Add equal plot scales
1 parent 1250566 commit 8e15e6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

climada/util/plot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ def geo_im_from_array(array_sub, geo_coord, var_name, title, **kwargs):
132132
list_name = to_list(num_im, var_name, 'var_name')
133133
list_coord = to_list(num_im, geo_coord, 'geo_coord')
134134

135+
if 'vmin' not in kwargs:
136+
kwargs['vmin'] = np.min(array_sub)
137+
if 'vmax' not in kwargs:
138+
kwargs['vmax'] = np.max(array_sub)
139+
135140
# Generate each subplot
136141
fig, axis_sub = make_map(num_im)
137142
for array_im, axis, tit, name, coord in \

0 commit comments

Comments
 (0)