tsdev / spinw

SpinW Matlab library for spin wave calculation
www.psi.ch/spinw
GNU General Public License v3.0
30 stars 35 forks source link

Small visualization bug when plotting unit cell? #36

Open henrikjacobsenfys opened 7 years ago

henrikjacobsenfys commented 7 years ago

Hi Sandor

It seems in a monoclinic structure that clicking and the a, b and c icons don't actually make one look down that axis. Instead, it seems that we look down the a, b and c* axes.

Cheers

Henrik

tsdev commented 7 years ago

You are right, the a, b and c buttons change the view to look along the a, b and **c*** axes, I probably should change it in the future to look along the a, b and c-axes. Alternatively you can use the command swplot.view() to change the view. Which has a single letter as input: 'a', 'b' and 'c' to get the same orientations as with the 3 buttons on the figure and you can use 'h', 'k' and 'l' to look along the abc axes. I realised the notation is confusing here as well, so I will change this also in the next version.

henrikjacobsenfys commented 7 years ago

I see, so it's simply a misunderstanding of what the buttons mean. Thanks for answering :)