Problem with stackplot

A place to report and discuss potential bugs
Post Reply
es1055
Newbie
Posts: 4
Joined: Wed Jul 01, 2015 7:52 am

Problem with stackplot

Post 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.
Attachments
Version 5 Roadmap.png
Version 5 Roadmap.png (20.69 KiB) Viewed 4024 times
Version 4 Roadmap.png
Version 4 Roadmap.png (199.59 KiB) Viewed 4024 times
NV_Stack_Plot.m
(1.17 KiB) Downloaded 591 times
Matt Krzyaniak
EasySpin Guru
Posts: 153
Joined: Tue Jul 22, 2014 11:01 am
Location: Northwestern University

Re: Problem with stackplot

Post 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.
Stefan Stoll
EasySpin Creator
Posts: 1057
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Problem with stackplot

Post 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.
Post Reply