scatter plot equation python code example
Example 1: scatter plot plotly
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
size='petal_length', hover_data=['petal_width'])
fig.show()
Example 2: scatter plot of a dataframe in python
>>> ax2 = df.plot.scatter(x='length',
... y='width',
... c='species',
... colormap='viridis')