Plotly Figure Size

In this Plotly tutorial, you will learn how to set figure size. To change figure size, you have to mention height and width of the figure.

# Import Plotly Module
import as px

# Import Dataset
dataset ="continent=='Oceania'")

# Figure Size
plot = px.scatter(dataset, x="gdpPercap", y="lifeExp", color='country', height=400, width=800)

# Show the Plot


Plotly Figure Size

Free learning resources: AiHintsCodeAllow

Leave a Comment

Your email address will not be published.