Skip to content

Commit

Permalink
fix small bug when using extend_plot_limit in plot_distributed_thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-schmitt committed Nov 1, 2023
1 parent 53a6a1f commit df31374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oggm/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,10 @@ def plot_distributed_thickness(gdirs, ax=None, smap=None, varname_suffix=''):
with utils.ncDataset(gdir.get_filepath('gridded_data')) as nc:
topo = nc.variables['topo'][:]

smap.set_topography(topo)
try:
smap.set_topography(topo)
except ValueError:
pass

for gdir in gdirs:
grids_file = gdir.get_filepath('gridded_data')
Expand Down

0 comments on commit df31374

Please sign in to comment.