Results: Minor change.

scenarios
Pierre-Antoine 2026-06-16 16:27:05 +02:00
parent 6ac268b668
commit 7d7a05c04c
1 changed files with 3 additions and 5 deletions

View File

@ -217,15 +217,13 @@ class PlotRKC(PamhyrPlot):
for data in results.get("additional_data"): for data in results.get("additional_data"):
data = data._data data = data._data
tx, ty = data['type_x'], data['type_y']
x, y = data['x'], data['y'] x, y = data['x'], data['y']
legend = data['legend'] legend = data['legend']
unit = data['unit'] unit = data['unit']
if ( if tx == 'water_elevation' and ty == 'time':
data['type_x'] == 'water_elevation' and
data['type_y'] == 'time'
):
line, = self.canvas.axes.plot( line, = self.canvas.axes.plot(
x, y, marker="+", x, y, marker="+",
label=legend + ' ' + unit label=legend + ' ' + unit