From 3578f9203230104398dafa8ad76f46c53a4b2172 Mon Sep 17 00:00:00 2001 From: Stephan Grein Date: Wed, 18 Dec 2024 11:57:14 +0100 Subject: [PATCH] Update parameters.py --- pypesto/visualize/parameters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pypesto/visualize/parameters.py b/pypesto/visualize/parameters.py index baee313e0..5b5fee415 100644 --- a/pypesto/visualize/parameters.py +++ b/pypesto/visualize/parameters.py @@ -464,7 +464,9 @@ def handle_inputs( # If all the scales are the same, put it in the x_axis_label if len({x_scale for _, x_scale in x_labels}) == 1: - x_axis_label = "Parameter value (" + x_labels[0][1].decode('utf-8') + ")" + x_axis_label = "Parameter value (" + x_axis_label += isinstance(x_labels[0][1], bytes) and x_labels[0][1].decode('utf-8') or x_labels[0][1] + x_axis_label += ")" x_labels = [x_name for x_name, _ in x_labels] else: x_axis_label = "Parameter value"