0

I want to make in LaTeX an interactive 3D plot where I can rotate the angle with the mouse.

The data is:

x = [288, 224, 160, 128]

y = [[0.5625, 0.28125, 0.21875, 1.1875, 20.375, 4.46875, 2.5625], [0.25, 0.1875, 0.140625, 0.84375, 23.109375, 3.46875, 1.90625], [0.109375, 0.125, 0.09375, 0.546875, 18.125, 2.546875, 1.375], [0.0625, 0.09375, 0.09375, 0.40625, 23.015625, 2.109375, 1.0625]]

z = [[0.8039, 0.8834, 0.8431, 0.8945, 0.8368, 0.9223, 0.4725], [0.8354, 0.7979, 0.8794, 0.8953, 0.6675, 0.9143, 0.4979], [0.7510, 0.8378, 0.8058, 0.8996, 0.4659, 0.9115, 0.3894], [0.8168, 0.8244, 0.7641, 0.8971, 0.5921, 0.9171, 0.4306]]

And coloured legend of:

legend = ['SVR non','Lin Reg','Dectree','Rand For','MLP','Gr Boost','SVR lin']

In the colours:

colours = [red,green,blue,orange,cyan,brown,olive]

So for example: 'SVR non' has in the first dataset a red colour dot with X=288 and the values Y=0.5625 and Z = 0.8039.

In Matplotlib it looks like this

1
  • 1
    AFAIK, it isn't that easy to create something like that. PDF has support for interactive 3D graphics, but only very limited. First step would be to create the right format out of matplotlib, which isn't that trivial, iirc. I tried to do something like this in March and after some reading decided to just run a Python instance and switch the windows during the presentation. – Skillmon Oct 22 '20 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.