# 3d dataset visualization using the plot package

**URL:** <https://racket.discourse.group/t/3d-dataset-visualization-using-the-plot-package/1563>\
**Category:** Show & Tell\
**Tags:** plot\
**Created:** [December 18, 2022, 1:22am UTC](https://racket.discourse.group/t/3d-dataset-visualization-using-the-plot-package/1563 "2022-12-18T01:22:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexh](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/alexh/32/315_2.png) [@alexh](https://racket.discourse.group/u/alexh)\
**Post date:** [December 18, 2022, 1:22am UTC](https://racket.discourse.group/t/3d-dataset-visualization-using-the-plot-package/1563/1 "2022-12-18T01:22:52Z")

</div>

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:

[![](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/d/d02008db5b34137cb27675ccc982a114a0d14a1a.jpeg "cloud plot3d") ](https://www.youtube.com/watch?v=JswODNc67GA)

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:

[![](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/1/1aa88c553525902efa4d299750afdd569d109688.jpeg "cloud 3d") ](https://www.youtube.com/watch?v=wR2qhs1lgAQ)

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.

---

<div class="post-metadata">

**Author:** ![damien\_mattei](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/damien_mattei/32/2706_2.png) [@damien\_mattei](https://racket.discourse.group/u/damien_mattei)\
**Post date:** [January 17, 2025, 10:55am UTC](https://racket.discourse.group/t/3d-dataset-visualization-using-the-plot-package/1563/2 "2025-01-17T10:55:55Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![damien\_mattei](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/damien_mattei/32/2706_2.png) [@damien\_mattei](https://racket.discourse.group/u/damien_mattei)\
**Post date:** [January 17, 2025, 11:20am UTC](https://racket.discourse.group/t/3d-dataset-visualization-using-the-plot-package/1563/3 "2025-01-17T11:20:52Z")

</div>

whaaa solution was just under my eyes before i noticed it 😮

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