Plotly Scatter : Changing Symbol
Python3
import plotly.express as px df = px.data.iris() # Create a scatter plot with different symbols for each species fig = px.scatter(df, x = "sepal_width" , y = "sepal_length" , color = "species" , size = 'petal_length' , symbol = "species" , # This parameter changes the symbols based on species hover_data = [ 'petal_width' ]) fig.show() |
Output:
Scatter plot using Plotly in Python
Plotly Python is a library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. Plotly python is an interactive visualization library.