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.
Problem with stackplot
Problem with stackplot
- Attachments
-
- Version 5 Roadmap.png (20.69 KiB) Viewed 7391 times
-
- Version 4 Roadmap.png (199.59 KiB) Viewed 7391 times
-
- NV_Stack_Plot.m
- (1.17 KiB) Downloaded 979 times
-
- EasySpin Guru
- Posts: 155
- Joined: Tue Jul 22, 2014 11:01 am
- Location: Northwestern University
Re: Problem with stackplot
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:
I'm not clear if this was an intentional change with CrystalOrientation.
Code: Select all
ExpNV.CrystalOrientation=Orientation.';
-
- EasySpin Creator
- Posts: 1120
- Joined: Mon Jul 21, 2014 10:11 pm
- Location: University of Washington
Re: Problem with stackplot
This is an error in the example, thanks for noting it!
In
So if you use
In
Exp.CrystalOrientation
, there should be one row per orientation.So if you use
Exp.CrystalOrientation = [phi.' theta.']
, it should work as expected.