Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting of all SpinW coordinate systems #26

Open
henrikjacobsenfys opened this issue Feb 13, 2017 · 7 comments
Open

Plotting of all SpinW coordinate systems #26

henrikjacobsenfys opened this issue Feb 13, 2017 · 7 comments

Comments

@henrikjacobsenfys
Copy link

It would be neat to be able to plot the xyz coordinate systems and the a^, b^ and c^* coordinate systems when using the plot() command.

@henrikjacobsenfys henrikjacobsenfys changed the title Coordinate systems FEATURE REQUEST: plotting of all SpinW coordinate systems Feb 13, 2017
@tsdev
Copy link
Owner

tsdev commented Feb 13, 2017

It is in 921417b! I added the option to choose 'abc', 'xyz' and 'hkl' coordinate systems to show. Use:
swplot.plotbase('mode','hkl'), etc. Let me know if this is what you wanted!

@henrikjacobsenfys
Copy link
Author

This is very nice! Is it possible to make it so that more than one coordinate system can be plotted simultaneously?

@tsdev
Copy link
Owner

tsdev commented Feb 14, 2017

It is possible. You have to use the separate command that plots the coordinate system:
swplot.plotbase('mode','xyz','replace',false)
Setting the replace option to false will avoid deleting the previous coordinate system. You also have to shift the new coordinate system, check out the help for details:
help swplot.plotbase

@henrikjacobsenfys
Copy link
Author

henrikjacobsenfys commented Feb 14, 2017

Hi again
It seems to me that there might be a bug in the plotting. Example:

test = spinw;
test.genlattice('lat_const',[4.684 3.423 5.129],'angled',[90 110 90],'sym','C 2/c')
plot(test,'range',[1 1 1 ])
swplot.plotbase('replace',false,'mode','hkl','shift',[-3;0;0])

In this case, L is quite different from c, but h is identical to a, which I think shouldn't be the case.
(edited using the 'replace' false option)

@tsdev
Copy link
Owner

tsdev commented Feb 14, 2017

Simple example:
plot(spinw('https://goo.gl/kQO0FJ'));
swplot.plotbase('replace',false,'mode','xyz','shift',[-3;0;0])

@tsdev
Copy link
Owner

tsdev commented Feb 14, 2017

I fixed it, hopefully it is right now: def8482

@henrikjacobsenfys
Copy link
Author

Seems to work, thanks!

@tsdev tsdev changed the title FEATURE REQUEST: plotting of all SpinW coordinate systems Plotting of all SpinW coordinate systems Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants