Plotly Express Gallery

Plotly Express is a terse, consistent, high-level wrapper around Plotly.py for rapid data exploration and figure generation.

This notebook demonstrates various plotly_express features. Reference documentation and a step by step walkthrough notebook are also available.

You can also read our Medium announcement article for more information on this library.

A single import

In [1]:
import plotly_express as px

Built-in sample datasets

In [2]:
print(px.data.iris.__doc__)
iris = px.data.iris()
    Each row represents a flower.

    https://en.wikipedia.org/wiki/Iris_flower_data_set

    Returns:
        A `pandas.DataFrame` with 150 rows and the following columns: `['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species',
       'species_id']`.
    
In [3]:
tips = px.data.tips()
gapminder = px.data.gapminder()
election = px.data.election()
wind = px.data.wind()
carshare = px.data.carshare()

Scatter and Line plots

In [4]:
px.scatter(iris, x="sepal_width", y="sepal_length")