Beautiful ridgeline plots in python
Alternatives To Ridgeplot
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Bokeh17,3982,9366179 hours ago136July 05, 2022697bsd-3-clausePython
Interactive Data Visualization in the browser, from Python
Visdom9,521326493 days ago26September 12, 2019109apache-2.0Python
A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy.
Scientific Visualization Book9,131
9 days ago17otherPython
An open access book on scientific visualization using python and matplotlib
Clip5,1321743 years ago32June 25, 20131apache-2.0C++
Create charts from the command line
Vega Lite4,0593061263 days ago374September 22, 2022626bsd-3-clauseTypeScript
A concise grammar of interactive graphics, built on Vega.
2 days ago40November 09, 202119mitGo
Generate HTTP load and plot the results in real-time
5 days ago89mpl-2.0C++
The Time Series Visualization Tool that you deserve.
5a day ago16November 02, 202048apache-2.0Python
Python library that makes it easy for data scientists to create charts.
a month ago1March 03, 202130mitC++
Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
Scottplot2,9953152 days ago121September 09, 202265mitC#
Interactive plotting library for .NET
Alternatives To Ridgeplot
Select To Compare

Alternative Project Comparisons

ridgeplot - beautiful ridgeline plots in Python

ridgeplot: beautiful ridgeline plots in Python

PyPI - Latest Release PyPI - Python Versions PyPI - Package Status PyPI - License
GitHub CI Docs codecov CodeFactor Codacy code quality

The ridgeplot python library aims at providing a simple API for plotting beautiful ridgeline plots within the extensive Plotly interactive graphing environment.

Bumper stickers:

  • Do one thing, and do it well!
  • Use sensible defaults, but allow for extensive configuration!

How to get it?

The source code is currently hosted on GitHub at: tpvasconcelos/ridgeplot

Install and update using pip:

pip install -U ridgeplot


  • plotly - the interactive graphing backend that powers ridgeplot
  • statsmodels - Used for Kernel Density Estimation (KDE)
  • numpy - Supporting library for multi-dimensional array manipulations

How to use it?

The official docs can be found at: https://ridgeplot.readthedocs.io/en/stable/

Sensible defaults

import numpy as np

from ridgeplot import ridgeplot

# Put your real samples here...
synthetic_samples = [np.random.normal(n / 1.2, size=600) for n in range(9, 0, -1)]

# Call the `ridgeplot()` helper, packed with sensible defaults
fig = ridgeplot(samples=synthetic_samples)

# The returned Plotly `Figure` is still fully customizable
fig.update_layout(height=500, width=800)

# show us the work!

ridgeline plot example using the ridgeplot Python library

Fully configurable

In this example, we will be replicating the first ridgeline plot example in this from Data to Viz post, which uses the probly dataset. You can find the plobly dataset on multiple sources like in the bokeh python interactive visualization library. I'll be using the same source used in the original post.

import numpy as np
from ridgeplot import ridgeplot
from ridgeplot.datasets import load_probly

# Load the probly dataset
df = load_probly()

# Let's grab only the subset of columns displayed in the example
column_names = [
    "Almost Certainly", "Very Good Chance", "We Believe", "Likely",
    "About Even", "Little Chance", "Chances Are Slight", "Almost No Chance",
]  # fmt: skip
df = df[column_names]

# Not only does 'ridgeplot(...)' come configured with sensible defaults
# but is also fully configurable to your own style and preference!
fig = ridgeplot(
    kde_points=np.linspace(-12.5, 112.5, 400),
    spacing=5 / 9,

# Again, update the figure layout to your liking here
    title="What probability would you assign to the phrase <i>Highly likely</i>?",
    plot_bgcolor="rgba(255, 255, 255, 0.0)",
    xaxis_gridcolor="rgba(0, 0, 0, 0.1)",
    yaxis_gridcolor="rgba(0, 0, 0, 0.1)",
    yaxis_title="Assigned Probability (%)",

ridgeline plot of the probly dataset using the ridgeplot Python library

Popular Plot Projects
Popular Visualization Projects
Popular User Interface Components Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Jupyter Notebook
Data Science
Data Analysis