Skip to content

Commit

Permalink
FIX plot: axis limits GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Nov 11, 2021
1 parent c691920 commit 8ac6511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eelbrain/_wxgui/mpl_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,13 @@ def TransferToWindow(self):
if self.single == 'symmetric':
use_single = -vmin == vmax
elif self.single == 'offset':
use_single = vmin == 0
use_single = False
else:
raise RuntimeError(f'{self.single=}')
if use_single:
ctrl.SetValue(f'{vmax}')
ctrl.SetValue(f'{vmax:g}')
else:
ctrl.SetValue(f'{vmin} {vmax}')
ctrl.SetValue(f'{vmin:g} {vmax:g}')
ctrl.SelectAll()
return True

Expand Down

0 comments on commit 8ac6511

Please sign in to comment.