I want a minimal example of plotting data using pure Julia code

I’d add to that, that WebGL and OpenGL are more considered a driver for the GPU than an actual drawing library like Cairo or GR.
So, that’s the most low-level you can go in that regard, if you want GPU acceleration.
I prototyped a pure Julia rasterizer at some point, which then would do the same as OpenGL, just on the CPU in 100% julia code. It turned out surprisingly short and actually still lurks in the Makie repository, waiting to get brought back to life:

I tried at some point to make it work with the newest Julia, so I think it runs right now, but if I remember correctly there was a bug that I didn’t have patience to fix.

4 Likes