[doc] fix figure generation with asy
[hkl.git] / Documentation / figures / B_b.asy
blobc40cefd54e50760981f3f7f4282e509f28e7eaa4
1 import three;
3 currentprojection=orthographic(1,0,0);
4 currentlight=White;
6 size(6cm);
8 triple b1 = (1, 0, 0);
9 triple b2 = (.31, .95, 0);
10 triple b3 = (.4, .5, 0.76);
12 // orthonormal coordinates
13 draw(Label("$\vec{x}$", 1), O--(2*X), gray, Arrow3());
14 draw(Label("$\vec{y}$", 1), O--(2*Y), gray, Arrow3());
15 draw(Label("$\vec{z}$", 1), O--(2*Z), gray, Arrow3());
17 // plan
18 draw(plane(2*X, 2*Y));
19 draw(plane(2*X, 2*Z));
20 draw(plane(2*Y, 2*Z));
22 // reciprocal space
23 draw(Label("$\vec{b_1}$", 1), O--b1, blue, Arrow3());
24 draw(Label("$\vec{b_2}$", 1), O--b2, red, Arrow3());
25 draw(Label("$\vec{b_3}$", 1), O--b3, green, Arrow3());