Top "Plotly-python" questions

Use this tag for questions about the interactive graphing library for Python.

Plotly: How to set the range of the y axis?

I have the following code to create the line plot with Plotly. How can I set the range of Y …

python plotly plotly-python
ModuleNotFoundError: No module named 'plotly.graph_objects'

Trying to use 'plotly.graph_objects' but I get this error ModuleNotFoundError: No module named 'plotly.graph_objects' How do …

python plotly plotly-python
Plotly: How to set line color?

How can I set the color of a line in plotly? import plotly.graph_objects as go from plotly.subplots …

python python-3.x plotly plotly-python
Plotly AttributeError: 'Figure' object has no attribute 'update_layout'

I am trying to add a title to my plot, but I get the error message: "AttributeError: 'Figure' object has …

python python-3.x visualization plotly-python
Use Pandas index in Plotly Express

Plotly Express allows me to easily plot a pandas dataframe, as explained in their examples. Rather than using a named …

python pandas plotly plotly-python
How to hide legend with Plotly Express and Plotly

I am trying to learn Plotly by firstly creating a simple bar chart in Plotly Express and then updating it …

python plotly data-visualization plotly-python
How to give space between two dcc components in Python Dash?

What is the HTML equivalent for &nbsp (space) in Dash? html.Div( [ dcc.Input(), <add horizontal space here&…

python plotly plotly-dash plotly-python
Plotly: How to filter a pandas dataframe using a dropdown menu?

I have a dataframe and using plotly I want to visualise the data. I have the following code fig = px.…

python plotly plotly-python
How to add caption & subtitle using plotly method in python

I'm trying to plot a bar chart using plotly and I wanted to add a caption and subtitle.(Here you …

python plotly plotly-python