def test_fill_between(): obj = arm.read_netcdf(sample_files.EXAMPLE_MET_WILDCARD) accumulate_precip(obj, 'tbrg_precip_total') display = TimeSeriesDisplay(obj) display.fill_between('tbrg_precip_total_accumulated', color='gray', alpha=0.2) return display.fig
def test_fill_between(): obj = arm.read_netcdf(sample_files.EXAMPLE_MET_WILDCARD) accumulate_precip(obj, 'tbrg_precip_total') display = TimeSeriesDisplay(obj) display.fill_between('tbrg_precip_total_accumulated', color='gray', alpha=0.2) obj.close() del obj try: return display.fig finally: matplotlib.pyplot.close(display.fig)