Questions tagged [plotly-python]

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

References:

2059 questions
0
votes
1 answer

How do I change the data that loads based on user input in a plotly dashboard?

I have this dashboard- import datetime import dash from dash import dcc, html import plotly from dash.dependencies import Input, Output from pyorbital.orbital import Orbital satellite = Orbital('TERRA') app = dash.Dash(__name__) app.layout =…
Cauder
  • 2,157
  • 4
  • 30
  • 69
0
votes
0 answers

Plotly Scattergl is unresponsive

I have used plotly's scatter and scattergl extensively for the last 2-3 years. However, for some strange reason scattergl has stopped working for the last couple of days. I can generate the html plot, but when I open it, my browser either shows the…
0
votes
1 answer

Horizontal wavelength colorbar legend for line plot

I have a line plot with a bunch of signals in the form of (wavelength, intensity) derived from an optics experiment. All of them share the exact same index (wavelength in the range of visible light). I want to add a simple, static horizontal…
oropo
  • 30
  • 6
0
votes
1 answer

Deploy Plotly Dash on Azure - Error shutting down master

I am currently using Plotly Dash, Python Flask to make an simple app. And I am deploying this app with azure. When I deploy the app with azure, it is causing errors saying: 2022-08-18T11:23:57.750944156Z: [ERROR] [2022-08-18 11:23:57 +0000] [77]…
0
votes
1 answer

Display aggregate value next to label in frame in treemap

Following my question here, I am now building nice treemaps. I would like to show the aggregate value of the branch next to its label (Equities and ETFs). I have looked at px.treemap and fig.update_layout parameters but I can't find what I am…
ou_ryperd
  • 2,037
  • 2
  • 18
  • 23
0
votes
0 answers

anyone knows how to create plotly pie chart

I want to create a pie chart with two columns as values and 1 column with labels, dataset image is attack and I want results in males who brought and do not bought car and the same for females. image
0
votes
1 answer

Is there a way to make fig 2 be a subplot of fig 1?

from plotly.subplots import make_subplots import plotly.graph_objects as go fig1 = px.area(CPI_and_Interest, x=CPI_and_Interest.index, y=Chi_so) fig2 = px.line(CPI_and_Interest, x=CPI_and_Interest.index, y=[‘Overnight’]) fig =…
0
votes
1 answer

Scroll between multiple subplots

i have a question regarding subplots. i’m creating plots using this command: figure = make_subplots( rows=4, cols=1, shared_xaxes=True, subplot_titles=("title1", "title2", "title3", "title4"), …
0
votes
1 answer

How can I add annotations outside a Plotly "Quandrant" Chart?

I'm working on a quadrant chart, but a bit stumped on how to get some annotations outside of my Plotly quadrant chart. I have provided some data data and code that I used below. #the libraries import pandas as pd import numpy as np import…
GSA
  • 751
  • 8
  • 12
0
votes
1 answer

Showing graphs Two dropdown that can choose multiple

I'm new in plotly and dash. I'm trying to make two dropdown menu that can choose multiple options. When I choose 1 and 2 on first dropdown menu and choose 2 and 3 on second dropdown menu, my expectation is showing line graphs(1-2,1-3,2-2,2-3) Here…
0
votes
1 answer

Add multiple lines in radar plot - python plotly

I am trying to create a radar plot in plotly. I am not sure how to add multiple lines to the same plot. I could find the add_trace option in plotly.graph_objects as go (https://plotly.com/python/radar-chart/). But I am not sure how to add multiple…
Natasha
  • 1,111
  • 5
  • 28
  • 66
0
votes
1 answer

Dash/ Plotly graph on mobile diasplaying width error

I am building a basic dashboard that displays the word count from messages in my friends' group chat. The graph works correctly on a desktop browser: However on mobile the graph has no width at all: How can I fix this? Any help would be much…
TechnoTerry
  • 65
  • 2
  • 6
0
votes
0 answers

Python plotly how to change X and Y axis in button

I'm working on a graph that ilustrates computer usage each day. I want to have a button that will group dates monthly for last year and set y as AVERAGE (mean) and draw avg line. My code: import datetime import numpy as np import pandas as pd import…
batreska
  • 53
  • 5
0
votes
1 answer

Adding trace lines with plotly.graph_objects

Here is an image: I want to plot three error graphs with predicted vs actual values in one plot, scatter plots. I couldn't figure out how to do that with plotly.express, but I figured it out with graph_objects library of plotly. But now I want to…
TamE
  • 1
  • 1
0
votes
1 answer

Plotly show bars with hours and minutes and keep proportions

I want to represent time_spent as combination of hours and minutes instead of bare seconds. I tried making HoursAndMinutes column and then adding it as y axis into graph, but that ruined scalling of bars. I want to be able to see time in format of…
batreska
  • 53
  • 5
1 2 3
99
100