Comments (1)
You can plot arbitrary vectors using the swplot.plot() function onto a 3D crystal plot. For example (note the xyz coordinate system is used for the arrow plots):
myModel = sw_model('triAF',1);
plot(myModel,'range',[1 1 1/2])
% 100
Qrlu = [1 0 0];
QA = Qrlu*myModel.rl;
swplot.plot('type','arrow','position',cat(3,zeros(3,1),QA'),'color','gold','unit','xyz');
swplot.plot('type','text','position',QA','text','[100]','unit','xyz')
% 010
Qrlu = [0 1 0];
QA = Qrlu*myModel.rl;
swplot.plot('type','arrow','position',cat(3,zeros(3,1),QA'),'color','pink','unit','xyz');
swplot.plot('type','text','position',QA','text','[100]','unit','xyz')
The result should look like this:
from spinw.
Related Issues (20)
- Bug with addaniso when using atomIdx and plotting the structure HOT 3
- Very minor typo HOT 1
- Change spinw.addg and spinw.addaniso to accept string options
- Small visualization bug when plotting unit cell? HOT 2
- plotchem plots bonds outside of unit cell HOT 1
- spinw.gencoupling() generates negative hMax2 which causes an error HOT 3
- Octave support HOT 4
- Monte Carlo calculation of critical temperatures HOT 2
- Unicode error in pyspinw HOT 6
- Usage of transplant.MatlabStruct HOT 1
- New preference class needs Matlab 2017a HOT 2
- Question about SpinW manual and pyspinw (ADDCOUPLING) HOT 1
- pyspinw plotting abnormalities
- Symbolic calculation isn't working
- Visualization of Spinwave
- Bug when plotting octahedra
- Hermit = false is wrong? HOT 1
- Defination of biquadratic exchange
- Bug: incorrect computation of instrument limits
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spinw.