Visualizing the underlying distribution
In plotly, by using the marginal parameter we can visualize the distribution of the values. Marginal parameter has three values:
- rug
- box
- violin
Example:
Python3
import plotly.express as px df = px.data.tips() fig = px.histogram(df, x = "total_bill" , marginal = 'box' ) fig.show() |
Output:
Histogram using Plotly in Python
Plotly is a Python 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 is an interactive visualization library.
Contact Us