Debian Codegraph @

texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.3d.code.tex

raw
1 % Copyright 2018 by Till Tantau
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
7 %
8 % See the file doc/generic/pgf/licenses/LICENSE for more details.
9
10 \ProvidesFileRCS{tikzlibrarydatavisualization.3d.code.tex}
11
12 \usetikzlibrary{datavisualization}%
13
14
15
16 % The following is not yet really implement. But you might get the idea...
17
18
19
20 % A 3d version of the school book plot
21
22 \tikzdatavisualizationset{
23 school book 3d plot/.style={
24 xyz Cartesian,
25 x axis={
26 visualize axis={y axis={goto=0},z axis={goto=0},styling/.style=->},
27 visualize ticks={common={y axis={goto=0},z axis={goto=0},direction axis=y axis},only ticks={tick text at min extend}},
28 % visualize ticks={common={y axis={goto=0},z axis={goto=0},direction axis=z axis}},
29 },
30 y axis={
31 visualize axis={x axis={goto=0},z axis={goto=0},styling/.style=->},
32 visualize ticks={common={x axis={goto=0},z axis={goto=0},direction axis=x axis},only ticks={tick text at min extend}},
33 % visualize ticks={common={x axis={goto=0},z axis={goto=0},direction axis=z axis}},
34 },
35 z axis={
36 visualize axis={x axis={goto=0},y axis={goto=0},styling/.style=->},
37 visualize ticks={common={x axis={goto=0},y axis={goto=0},direction axis=x axis},only ticks={tick text at min extend}},
38 % visualize ticks={common={x axis={goto=0},y axis={goto=0},direction axis=y axis}}
39 },
40 new line plot,
41 every school book plot/.try,
42 },
43 }%
44
45
46 % A 3d version of the scientific plot
47 %
48 % Here, a "length" is used for the length of the three
49 % axes, rather than a predetermined rectangle (this does not really
50 % make sense for the z-axis. You overrule these settings easily.
51
52 \tikzdatavisualizationset{
53 scientific 3d plot/length/.initial=100pt,
54 scientific 3d plot/.style={
55 xyz Cartesian,
56 x axis={
57 length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
58 visualize axis={y axis={goto=min},z axis={goto=min}},
59 visualize axis={y axis={goto=max},z axis={goto=min}},
60 visualize axis={y axis={goto=min},z axis={goto=max}},
61 visualize axis={y axis={goto=max},z axis={goto=max}},
62 },
63 y axis={
64 length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
65 visualize axis={x axis={goto=min},z axis={goto=min}},
66 visualize axis={x axis={goto=max},z axis={goto=min}},
67 visualize axis={x axis={goto=min},z axis={goto=max}},
68 visualize axis={x axis={goto=max},z axis={goto=max}},
69 },
70 z axis={
71 length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
72 visualize axis={x axis={goto=min},y axis={goto=min}},
73 visualize axis={x axis={goto=max},y axis={goto=min}},
74 visualize axis={x axis={goto=min},y axis={goto=max}},
75 visualize axis={x axis={goto=max},y axis={goto=max}},
76 },
77 new line plot,
78 },
79 }%