Answers for "Plotly set axes labels"

0

Plotly set axes labels

import plotly.express as px

df = px.data.iris()
fig = px.scatter(df, x="sepal_length", y="sepal_width", color="species",
                 labels={
                     "sepal_length": "Sepal Length (cm)",
                     "sepal_width": "Sepal Width (cm)",
                     "species": "Species of Iris"
                 },
                title="Manually Specified Labels")
fig.show()
Posted by: Guest on April-18-2022

Python Answers by Framework

Browse Popular Code Answers by Language