@@ -296,16 +296,17 @@ def plot_resid_histogram(obs, preds, title, fontsize=8, show=False, fpath=None):
296296 plt .close (fig )
297297
298298
299- def plot_mcmc_elev_change_1d (preds , fls , obs , ela , title , fontsize = 8 , rate = True , uniform_area = True , show = False , fpath = None ):
300-
299+ def plot_mcmc_elev_change_1d (
300+ preds , fls , obs , ela , title , fontsize = 8 , rate = True , uniform_area = True , show = False , fpath = None
301+ ):
301302 bin_z = np .array (obs ['bin_centers' ])
302303 bin_edges = np .array (obs ['bin_edges' ])
303304
304305 # get initial thickness and surface area
305306 initial_area = fls [0 ].widths_m * fls [0 ].dx_meter
306307 initial_thickness = getattr (fls [0 ], 'thick' , None )
307308 initial_surface_h = getattr (fls [0 ], 'surface_h' , None )
308- # sort initial surface height
309+ # sort initial surface height
309310 sorting = np .argsort (initial_surface_h )
310311 initial_surface_h = initial_surface_h [sorting ]
311312 initial_area = initial_area [sorting ]
@@ -319,7 +320,7 @@ def plot_mcmc_elev_change_1d(preds, fls, obs, ela, title, fontsize=8, rate=True,
319320 initial_area = obs ['bin_area' ]
320321
321322 if uniform_area :
322- xvals = np .nancumsum (initial_area )* 1e-6
323+ xvals = np .nancumsum (initial_area ) * 1e-6
323324 else :
324325 xvals = bin_z
325326
@@ -365,7 +366,6 @@ def elev_to_cum_area(x):
365366 ax [t ].axhline (y = 0 , c = 'grey' , lw = 0.5 )
366367 preds = np .stack (preds )
367368
368-
369369 ax [t ].fill_between (
370370 xvals ,
371371 (obs ['dh' ][:, t ] - obs ['dh_sigma' ][:, t ]) / nyrs [t ],
0 commit comments