From e86ccda389feaa0674af925d0590ebd5492142ea Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Tue, 20 Feb 2024 18:56:51 +0400 Subject: [PATCH] Fix plot_csv.py --- scripts/plot/plot_csv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/plot/plot_csv.py b/scripts/plot/plot_csv.py index b3b832c82..201766937 100755 --- a/scripts/plot/plot_csv.py +++ b/scripts/plot/plot_csv.py @@ -17,6 +17,9 @@ data = numpy.genfromtxt(text, dtype=float, delimiter=',') +if len(data.shape) == 1: + data = data[:,numpy.newaxis] + if not columns: columns = [None] * data.shape[1]