Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Fixed a bug in autophasing stacked and arrayed plots
Browse files Browse the repository at this point in the history
  • Loading branch information
smeerten committed Dec 6, 2019
1 parent 6a94637 commit 9d3a400
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,10 @@ def directAutoPhase(self, phaseNum):
"""
tmpLocList = copy.copy(self.locList)
if self.ndim() > 1:
tmpLocList[self.axes[:-1]] = self.viewSettings["stackBegin"]
if self.viewSettings["stackBegin"] is None:
tmpLocList[self.axes[-1]] = 0
else:
tmpLocList[self.axes[-1]] = self.viewSettings["stackBegin"]
self.root.addMacro(['autoPhase', (phaseNum, self.axes[-1] - self.data.ndim(), tmpLocList)])
self.data.autoPhase(phaseNum, self.axes[-1], tmpLocList)
self.upd()
Expand Down

0 comments on commit 9d3a400

Please sign in to comment.