From 7d7a05c04c835adc84154f89a0ed53ef45043b2a Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Tue, 16 Jun 2026 16:27:05 +0200 Subject: [PATCH] Results: Minor change. --- src/View/Results/PlotRKC.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/View/Results/PlotRKC.py b/src/View/Results/PlotRKC.py index 7e82f458..744dc7e3 100644 --- a/src/View/Results/PlotRKC.py +++ b/src/View/Results/PlotRKC.py @@ -217,15 +217,13 @@ class PlotRKC(PamhyrPlot): for data in results.get("additional_data"): data = data._data + + tx, ty = data['type_x'], data['type_y'] x, y = data['x'], data['y'] legend = data['legend'] unit = data['unit'] - if ( - data['type_x'] == 'water_elevation' and - data['type_y'] == 'time' - ): - + if tx == 'water_elevation' and ty == 'time': line, = self.canvas.axes.plot( x, y, marker="+", label=legend + ' ' + unit