visualisation/cube.tex

changeset 23
b719a44b0b26
parent 21
5f2b65738e66
child 24
8b4b014277fa
equal deleted inserted replaced
22:cecdde4ff5c9 23:b719a44b0b26
38 align = left, 38 align = left,
39 draw = none, 39 draw = none,
40 fill = none, 40 fill = none,
41 font = \small 41 font = \small
42 }, 42 },
43 } 43 illustr3d/.style = {
44 44 axis equal,
45 \begin{tikzpicture} 45 width=5cm,
46 \begin{axis}[ 46 height=5cm,
47 scale only axis,
48 enlargelimits=false,
47 colormap access=map, 49 colormap access=map,
48 colormap/Blues,%RdPu-6, 50 colormap/Blues,
49 colorbar, 51 colorbar,
50 point meta rel=axis wide, 52 point meta rel=axis wide,
51 shader = interp, 53 shader = interp,
52 xlabel = {$x$}, 54 xlabel = {$x$},
53 ylabel = {$y$}, 55 ylabel = {$y$},
61 legend style = { 63 legend style = {
62 at = {(0.5, 1.05)}, 64 at = {(0.5, 1.05)},
63 anchor = north, 65 anchor = north,
64 column sep = 1ex, 66 column sep = 1ex,
65 }, 67 },
66 ] 68 }
69 }
67 70
71 \begin{tikzpicture}
72 \begin{axis}[illustr3d]
68 \addplot3[cube] coordinates {(0, 0, 0) (0, 1, 0) (0, 1, 1) }; 73 \addplot3[cube] coordinates {(0, 0, 0) (0, 1, 0) (0, 1, 1) };
69 \addplot3[cube] coordinates {(0, 1, 0) (1, 1, 0) }; 74 \addplot3[cube] coordinates {(0, 1, 0) (1, 1, 0) };
70 \addplot3[backdata] table[x=x,y=y,z=z] {\datapath/data.csv}; 75 \addplot3[backdata] table[x=x,y=y,z=z] {\datapath/data.csv};
71 \addplot3[backiter] table[x=x,y=y,z=z] {\datapath/log.txt}; 76 \addplot3[backiter] table[x=x,y=y,z=z] {\datapath/log.txt};
72 77

mercurial