StollLab / EasySpin

MATLAB toolbox for Electron Paramagnetic Resonance (EPR) spectroscopy
http://easyspin.org
MIT License
48 stars 25 forks source link

levelsplot: level/transition print not working correctly #291

Closed stestoll closed 1 year ago

stestoll commented 1 year ago

The WindowButtonMotionFcn callback in levelsplot does not work properly in the case of multiple subplot. MWE:

clear, clc

Sys.S = 1;
Sys.D = 1000;

Brange = [0 600];
mw = 9.5;

subplot(1,3,1)
levelsplot(Sys,'x',Brange,mw)
title('B||x')
subplot(1,3,2)
levelsplot(Sys,'y',Brange,mw)
title('B||y')
subplot(1,3,3)
levelsplot(Sys,'z',Brange,mw)
title('B||z')
stestoll commented 1 year ago

Thanks for fixing this!