Skip to content

Commit

Permalink
Fix plot_csv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Feb 20, 2024
1 parent 1f21e84 commit e86ccda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/plot/plot_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit e86ccda

Please sign in to comment.