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

**URL:** <https://discourse.julialang.org/t/i-want-a-minimal-example-of-plotting-data-using-pure-julia-code/83435>\
**Category:** Visualization\
**Created:** [June 27, 2022, 9:48pm UTC](https://discourse.julialang.org/t/i-want-a-minimal-example-of-plotting-data-using-pure-julia-code/83435 "2022-06-27T21:48:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [June 27, 2022, 10:59pm UTC](https://discourse.julialang.org/t/i-want-a-minimal-example-of-plotting-data-using-pure-julia-code/83435/4 "2022-06-27T22:59:17Z")

</div>

As far as I understand ([this](https://discourse.julialang.org/t/julia-alternatives-to-matplotlib/45445/33) thread has a long discussion about it), all the julia plotting packages apart from UnicodePlots.jl call deep down a library in another language. Gadfly calls Cairo, Plots with the default backend calls GR which is written in C, and each of Makie’s backends calls their own library, Cairo for Cairo Makie, OpenGL for GLMakie and WebGL for WGLMakie. So in that sense even Gadfly is not written in pure julia and the “drawing” functions are in another library.

If that is acceptable for you maybe Cairo.jl has some of the most transparent examples: [Cairo.jl/Samples.md at master · JuliaGraphics/Cairo.jl · GitHub](https://github.com/JuliaGraphics/Cairo.jl/blob/master/samples/Samples.md)

---

_[View the full topic](https://discourse.julialang.org/t/i-want-a-minimal-example-of-plotting-data-using-pure-julia-code/83435)._
