From f2f1681061a97c5239c52bc94bf0f088ec33a76f Mon Sep 17 00:00:00 2001 From: akrherz Date: Thu, 3 Feb 2022 12:29:48 -0600 Subject: [PATCH] add simple diagnostic plot for #115 --- scripts/plots/plot_wb_snow.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/plots/plot_wb_snow.py b/scripts/plots/plot_wb_snow.py index ca5f0416..b3d044a7 100644 --- a/scripts/plots/plot_wb_snow.py +++ b/scripts/plots/plot_wb_snow.py @@ -1,13 +1,8 @@ """Diagnose some Water Balance stuff""" import sys -import glob -import datetime -from tqdm import tqdm import pandas as pd -from scipy import stats import seaborn as sns -from pyiem.plot import figure_axes from pyiem.dep import read_wb from pyiem.util import get_dbconnstr @@ -33,7 +28,7 @@ def main(argv): g.ax.set_xlabel("Snow Depth WEPP (mm)") df = df[pd.notnull(df["obs"])] b = df["snodpy"].mean() - df["obs"].mean() - g.ax.text(0.05, 0.8, "bias:{:.3f}mm".format(b), transform=g.ax.transAxes) + g.ax.text(0.05, 0.8, f"bias:{b:.3f}mm", transform=g.ax.transAxes) g.fig.subplots_adjust(top=0.95) g.fig.savefig("test.png")