Show Menu
Cheatography

Plotly Cheat Sheet (DRAFT) by

Plotly express Einführung für Dash

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Install

pip install plotly

Import

import plotly.ex­press as px

Allgem­einer Code für Plot

fig = px.chart_type(
df,
chart_specifc_parameters,
title="Chart title",
labels={"x_column_name": "X column name"},
width=600,
height=400,
)
fg.show()

(Beisp­iel­dat­ensatz: Iris)

df = px.dat­a.i­ris()

Scatter Plot

fig = px.scatter(
        df, x='sepal_width',
        y='sepal_length',
        color='species',
        marginal_y="violin",
        marginal_x="box"
)