I want the lines to be in front of the axes. Here is the code that I used:
data1 = {{0, 0, 0}, {0.8, 0, 0}}
data2 = {{0, 0, 0}, {0, 0, 0.5}}
plot = ListLinePlot3D[{data1, data2},
AxesOrigin -> {0, 0, 0},
PlotRange -> {{-1, 1}, {-1, 1}, {-1, 1}},
BoxRatios -> {1, 1, 1},
Boxed -> False,
ViewPoint -> {3, 2, 2},
Ticks -> None,
AxesStyle -> Directive[Black, Thickness[.005]],
PlotStyle -> {{Gray, Thickness[.05]}, {Red, Thickness[.05]}}
];
Show[plot, Method -> {"AxesInFront" -> False}]
As can be seen, I have used Show
and Method -> {"AxesInFront" -> False}
excerpt from this previous post . Unfortunately, it doesn't seem to work.
How can this be achieved for all the lines in the plot?