# How to make ridgeline plot (sparkline, joyplot) using Plots.jl?

**URL:** <https://discourse.julialang.org/t/how-to-make-ridgeline-plot-sparkline-joyplot-using-plots-jl/109826>\
**Category:** Visualization\
**Tags:** question, plotting, plots\
**Created:** [February 6, 2024, 5:59pm UTC](https://discourse.julialang.org/t/how-to-make-ridgeline-plot-sparkline-joyplot-using-plots-jl/109826 "2024-02-06T17:59:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![homocomputeris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/homocomputeris/32/8933_2.png) [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Post date:** [February 6, 2024, 5:59pm UTC](https://discourse.julialang.org/t/how-to-make-ridgeline-plot-sparkline-joyplot-using-plots-jl/109826/1 "2024-02-06T17:59:00Z")

</div>

I want to make a plot like this one:

 ![ridgeline](https://global.discourse-cdn.com/julialang/original/3X/d/0/d01627943a381c45306e18b95133306fe925b9e7.png)

Makie has an [example](https://docs.makie.org/stable/reference/plots/density/) but I want to make the same in Plots.jl in order to not use 2 packages.

More specifically, I’d like to have:

- no 3D, “parallax” or any kind of perspective distortion (compared to the [waterfall plot](https://discourse.julialang.org/t/how-to-produce-a-waterfall-plot-in-julia/93441))
- same scale for every curve (that is, 1 unit of length in the first “subplot” looks the same as 1 unit in any other)
- y-axis only for the 1st “subplot” or a scale ruler (like on a map)
- shared x-axis with labels
- no shading below the curve

How it can be done?
