From 8d21d5d1e27caae0d8a446c6627d4643dcc3cf37 Mon Sep 17 00:00:00 2001 From: Benjamin Hackl Date: Mon, 30 Jun 2025 08:57:31 +0200 Subject: [PATCH] fix: recompute resolution based on current figure width when resizing canvas --- src/vitabel/timeseries.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vitabel/timeseries.py b/src/vitabel/timeseries.py index 7735043..0274729 100644 --- a/src/vitabel/timeseries.py +++ b/src/vitabel/timeseries.py @@ -3540,6 +3540,7 @@ def repaint_plot(start, stop): overview_indicators, \ screen_pixel_width data_width = (stop - start).total_seconds() + screen_pixel_width, _ = fig.canvas.get_width_height() resolution = data_width / screen_pixel_width partial_interval_artist_ax = None