SpinW / spinw

SpinW Matlab library for spin wave calculation
http://www.spinw.org
GNU General Public License v3.0
35 stars 15 forks source link

Auto mode in sw_plotspec overrides 'imag' option #172

Closed Artemkth closed 4 months ago

Artemkth commented 5 months ago

I am unable to turn off plotting imaginary component in the auto mode.

mducle commented 5 months ago

Thanks for reporting this. Sorry, it's a bug.

If you want to fix it yourself, please change line 315 of sw_plotspec.m from:

            'dashed',false,'title',~pColor,'legend',~pColor,'imag',~pColor,...

to

            'dashed',false,'title',~pColor,'legend',~pColor,'imag',~pColor & param.imag,...