Page 1 of 1
Problem with stackplot
Posted: Wed Jul 01, 2015 8:09 am
by es1055
I've been using the attached script to generate crystal roadmaps in EasySpin 4.5.5. However, when I try and run it with version 5.0 the result is two clusters of overlapped spectra. The simulated spectra appear to be correct, it's just the spacing that is off. The same problem occurs when I attempt to run the 'crystalrotation' example file that came with the version 5.0.
Thanks.
Re: Problem with stackplot
Posted: Wed Jul 01, 2015 9:22 am
by Matt Krzyaniak
A quick fix to your problem is to change your orientation vector from a column-wise per orientation to row-wise, just take the transpose of the orientation vector as you're generating it:
Code: Select all
ExpNV.CrystalOrientation=Orientation.';
I'm not clear if this was an intentional change with CrystalOrientation.
Re: Problem with stackplot
Posted: Wed Jul 01, 2015 9:30 am
by Stefan Stoll
This is an error in the example, thanks for noting it!
In Exp.CrystalOrientation
, there should be one row per orientation.
So if you use Exp.CrystalOrientation = [phi.' theta.']
, it should work as expected.