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 plotly.express as px
# Import Dataset
dataset = px.data.gapminder().query("continent=='Oceania'")
# Figure Size
plot = px.scatter(dataset, x="gdpPercap", y="lifeExp", color='country', height=400, width=800)
# Show the Plot
plot.show()Output:



