Skip to content
Snippets Groups Projects
Commit 2abc0d22 authored by Dennis Noll's avatar Dennis Noll
Browse files

[plotting] Multiplot: fixed edgecase

parent 5bf258f9
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,12 @@ class Multiplot:
def index(self, i):
row = int(i / self.cols)
col = i - row * self.cols
return row, col
if self.rows == 1:
return col
if self.cols == 1:
return row
else:
return row, col
def saveplot(f):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment