Draw 3D Axis

Hello, I’m trying to find a way to draw 3D Axes on a canvas, and I haven’t found anything that works yet.

Basically what I have is a TCanvas with a bunch of TPolyLine3Ds and TPolyMarker3Ds drawn on it (see attachment), and I would like to have some kind of ruled axes on it.

More specifically, I would like something similar to what gPad->DrawFrame() does for a 2D canvas, or the default axes on a TH3 that rotate along with the plot.

Can anyone help me with this?


Turns out the TAxis3D class does what I want, I had just been misusing it before.