GithubHelp home page GithubHelp logo

Comments (7)

tsdev avatar tsdev commented on July 18, 2024 1

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!

from spinw.

tsdev avatar tsdev commented on July 18, 2024 1

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

from spinw.

tsdev avatar tsdev commented on July 18, 2024 1

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

from spinw.

henrikjacobsenfys avatar henrikjacobsenfys commented on July 18, 2024

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

from spinw.

henrikjacobsenfys avatar henrikjacobsenfys commented on July 18, 2024

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)

from spinw.

tsdev avatar tsdev commented on July 18, 2024

I fixed it, hopefully it is right now: def8482

from spinw.

henrikjacobsenfys avatar henrikjacobsenfys commented on July 18, 2024

Seems to work, thanks!

from spinw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.