% 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{tikzlibrarydatavisualization.3d.code.tex}

\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,
  },
}%
