File Exchange

image thumbnail

joyPlot - Ridgeline data representation

version 0.1 (1.23 MB) by Santiago Benito
Plot several datasets in a single axis using the ridgeline representation.


Updated 23 Apr 2020

View Version History

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This function plots the given datasets in a single figure and axis, and resembling the cover of Joy Divisions' Unknown Pleasures by Peter Saville (and in many other newspapers, journals, etc.).

The function is very simple and lightweight and only uses the MATLAB(R) built-in functions fill and plot. I am actually amazed that this wasn't programmed before, but there you go.

The figures are extremely customizable. I provided some documentation in the files section.


Cite As

Santiago Benito (2021). joyPlot - Ridgeline data representation (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Ned Gulley


Alessandro Lodi


Simon Tupin

Wow, thanks a lot! The last double colormap is nice!


Santiago Benito

Simon's comment was addressed in version v0.1. Cheers!

Santiago Benito

Hi Simon! It's possible, but not with the current version, I am working on an update to address your question. Great recommendation, by the way!

Simon Tupin

Great job! Any way to set change the line color as the local height?

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!