From 04fe771e8fce6b5c45006331e864237c3d7ebb3d Mon Sep 17 00:00:00 2001 From: zhilv Date: Sun, 21 Dec 2025 16:19:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BB=98=E5=9B=BE?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9C=8B=E4=B8=8D=E6=B8=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/plot.py b/services/plot.py index 5e734b3..43985e7 100644 --- a/services/plot.py +++ b/services/plot.py @@ -27,9 +27,9 @@ def plot_line( has_free = free_values is not None and len(free_values) > 0 if has_free: - fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(8, 6), sharex=True) + fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(16, 6), sharex=True) else: - fig, ax1 = plt.subplots(1, 1, figsize=(8, 4)) + fig, ax1 = plt.subplots(1, 1, figsize=(16, 4)) ax2 = None # ===== 普通额度 ===== @@ -42,7 +42,7 @@ def plot_line( ax1.grid(True) for i, (x, y) in enumerate(zip(times, normal_values)): - dy = 8 if i == 0 or y >= normal_values[i - 1] else -12 + dy = 8 if i != 0 or y < normal_values[i - 1] else -16 ax1.annotate( f"{y}",