From adaabb283186253c69d50be73cf7233c3ec2bd0c Mon Sep 17 00:00:00 2001 From: DXC Date: Fri, 10 Jul 2026 16:38:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(plotting):=20=E9=A3=8E=E9=80=9F=E6=97=B6?= =?UTF-8?q?=E5=BA=8F=E5=9B=BE=E5=A2=9E=E5=8A=A0=20winddir=20=E9=80=9A?= =?UTF-8?q?=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _time_series_wrapper 的 ys 参数从 ['windspeed'] 改为 ['windspeed', 'winddir'], 双Y轴分别显示风速 (m/s) 和风向 (°) --- src/gasflux/plotting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gasflux/plotting.py b/src/gasflux/plotting.py index e7f76c5..d24f5b8 100644 --- a/src/gasflux/plotting.py +++ b/src/gasflux/plotting.py @@ -632,14 +632,14 @@ def _windrose_wrapper(df): def _time_series_wrapper(df): - """time_series(df) → original time_series(df, ys=['windspeed'])""" + """time_series(df) → original time_series(df, ys=['windspeed','winddir'])""" return time_series( df, - ys=["windspeed"], + ys=["windspeed", "winddir"], x="timestamp", rolling_average=True, scatter=True, - y_titles="Wind Speed (m/s)", + y_titles=["Wind Speed (m/s)", "Wind Direction (°)"], )