I have a lot of data points which represents a value at different points in different cross-sections of a container. I can use ListPlot3D
or ListDensityPlot
to get a view of each cross section. What I would like is a way to show the output of ListPlot3D
or ListDensityPlot
in a 3D stack so you can get an idea how the plots fit together.
I answered a much simpler question here that has sort of a similar effect except using graphics objects. However, it seems more difficult to me when you are using the result of a different plotting function.
Here are some example values for different cross-sections which can be given directly to ListPlot3D
or ListDensityPlot
level1 = {{-2, -1, 1}, {-2, 0, 2}, {-2, 1, 1}, {-1, -2, 0}, {-1, -1, 2},
{-1, 0, 2}, {-1, 1, 4}, {-1, 2, 3}, {0, -2, 1}, {0, -1, 2}, {0, 0, 3},
{0, 1, 1}, {0, 2, 5}, {1, -2, 1}, {1, -1, 1}, {1, 0, 2}, {1, 1, 5},
{1, 2, 5}, {2, -1, 0}, {2, 0, 3}, {2, 1, 4}}
level2 = {{-2, -1, 5}, {-2, 0, 3}, {-2, 1, 3}, {-1, -2, 0},{-1, -1, 4},
{-1, 0, 3}, {-1, 1, 0}, {-1, 2, 3}, {0, -2, 1}, {0, -1, 1}, {0,0, 2},
{0, 1, 1}, {0, 2, 5}, {1, -2, 4}, {1, -1, 2}, {1, 0, 3}, {1, 1, 4},
{1, 2, 3}, {2, -1, 5}, {2, 0, 3}, {2, 1, 4}}
level3 = {{-2, -1, 4}, {-2, 0, 4}, {-2, 1, 4}, {-1, -2, 2}, {-1, -1, 1},
{-1, 0, 3}, {-1, 1, 0}, {-1, 2, 3}, {0, -2, 0}, {0, -1, 3}, {0,0, 0},
{0, 1, 5}, {0, 2, 0}, {1, -2, 2}, {1, -1, 4}, {1, 0, 5}, {1, 1, 0},
{1, 2, 2}, {2, -1, 1}, {2, 0, 1}, {2, 1, 2}}