summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.3d.code.tex
blob: 8018de58018481dd98615c2947b98ce70cb52bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
% Copyright 2008 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.

\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.3d.code.tex,v 1.1 2008/12/17 22:48:46 tantau Exp $

\usetikzlibrary{datavisualization}



% The following is not yet really implement. But you might get the idea...



% A 3d version of the school book plot

\tikzdatavisualizationset{
  school book 3d plot/.style={
    xyz Cartesian,
    x axis={
      visualize axis={y axis={goto=0},z axis={goto=0},styling/.style=->},
      visualize ticks={common={y axis={goto=0},z axis={goto=0},direction axis=y axis},only ticks={tick text at min extend}},
%      visualize ticks={common={y axis={goto=0},z axis={goto=0},direction axis=z axis}},
    },
    y axis={
      visualize axis={x axis={goto=0},z axis={goto=0},styling/.style=->},
      visualize ticks={common={x axis={goto=0},z axis={goto=0},direction axis=x axis},only ticks={tick text at min extend}},
%      visualize ticks={common={x axis={goto=0},z axis={goto=0},direction axis=z axis}},
    },
    z axis={
      visualize axis={x axis={goto=0},y axis={goto=0},styling/.style=->},
      visualize ticks={common={x axis={goto=0},y axis={goto=0},direction axis=x axis},only ticks={tick text at min extend}},
%      visualize ticks={common={x axis={goto=0},y axis={goto=0},direction axis=y axis}}
    },
    new line plot,
    every school book plot/.try
  }
}


% A 3d version of the scientific plot
%
% Here, a "length" is used for the length of the three
% axes, rather than a predetermined rectangle (this does not really
% make sense for the z-axis. You overrule these settings easily.

\tikzdatavisualizationset{
  scientific 3d plot/length/.initial=100pt,
  scientific 3d plot/.style={
    xyz Cartesian,
    x axis={
      length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
      visualize axis={y axis={goto=min},z axis={goto=min}},
      visualize axis={y axis={goto=max},z axis={goto=min}},
      visualize axis={y axis={goto=min},z axis={goto=max}},
      visualize axis={y axis={goto=max},z axis={goto=max}}
    },
    y axis={
      length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
      visualize axis={x axis={goto=min},z axis={goto=min}},
      visualize axis={x axis={goto=max},z axis={goto=min}},
      visualize axis={x axis={goto=min},z axis={goto=max}},
      visualize axis={x axis={goto=max},z axis={goto=max}}
    },
    z axis={
      length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
      visualize axis={x axis={goto=min},y axis={goto=min}},
      visualize axis={x axis={goto=max},y axis={goto=min}},
      visualize axis={x axis={goto=min},y axis={goto=max}},
      visualize axis={x axis={goto=max},y axis={goto=max}}
    },
    new line plot
  }
}