3d dataset visualization using the plot package

I needed a way to visualize a 3D dataset and I used the racket plot package for it, and, while the dataset is not Racket related, I thought I share the end result here:

The racket plot package uses parallel projection for 3D plots, which is useful for mathematical functions, but looks a bit strange when rotating the plot. Below is the same data rendered using only racket/draw and a hand-written 3D rendering pipeline in about 500 lines of Racket:

Also, to avoid any confusion, these plots don't rotate in real time: I wrote the program to write out image frames and used ffmpeg to assemble them into videos. Each frame takes about 1 second to render, but there are about 26000 data points in the plots.

Alex.

8 Likes

I need to plot in 3D a dataset too, i reply to this post because unfortunately there is no code in the post and i need help with the doc for doing the same thing.
I'm interested if anyone has a code example using Racket for displaying a dataset (a trajectory of points in space) with the Racket library?

Regards,

whaaa solution was just under my eyes before i noticed it :open_mouth:

https://docs.racket-lang.org/plot/renderer3d.html?q=points

1 Like