File Exchange Pick of the Week

Our best user submissions

Ridgeline Visualization

Jiro's Pick this week is joyPlot by Santiago Benito.

I must admit that I was simply drawn by the visualization, rather than the name of the function, as I was not familiar with the band or the music album. It was interesting to read the back story.

The visualization is a stacked plot with overlap, resembling a ridgeline. Here is an example from the sample code that Santiago includes with his entry.

data = readmatrix(websave('pulsar.csv',['',...
x = linspace(0,93,size(data,2));

set(gca,'Visible','off', 'box','off','XTick',[],'YTick',[])

The function has a number of options for customization. For example, you can add colors to the plot. In this case, the colors represent the mean values of each signal.


If you have R2018b or newer, you may be interested in stackedplot. It will display multiple signals with common x values on a stacked plot. It has an interactive cursor which displays the values. Note that for data sets such as this one which has many signals, the number of signals displayed is limited by the size of the figure.



Give it a try and let us know what you think here or leave a comment for Santiago.

Published with MATLAB® R2020a

  • print


要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。