Questions tagged [plotly.graph-objects]
88 questions
0
votes
0 answers
How can i import a plotly graph into my ppt file (with pypptx)
I have to do a complicated graph on a ppt. Of course i started with the pyppt library but there is very little documentation and you quickly find yourself stuck/
So i did my graph with plotly.graph (i have never done graphs) and i want to import it…

guiguilecodeur
- 429
- 2
- 15
0
votes
1 answer
plotly.graph_objects, how can i change \n my value
i m doing a graph and i want to "\n" my line but i dont find how can i do it:
there is my graph:
And i would like to get something like:
Niveau
BLABLABLA
100%
I checked on the documentation but i don't find anything (i tried automargin=True,…

guiguilecodeur
- 429
- 2
- 15
0
votes
1 answer
plotly graph objects change color inside 2 forms
I'm working on plotly.graph_objects. There is my result:
and i would like to change the color (example red) inside my 2nd block (15 at 35) between the green line and the black line.
there is my code:
from cgitb import text
import…

guiguilecodeur
- 429
- 2
- 15
0
votes
1 answer
How to filter heatmap colorscale in Plotly Dash?
I am new to plotly dash. I am trying to create an interactive dashboard where I can filter the colorbar to see the upper values for example if the value is 3000 it was red, so if I type 3000 as input, it is still red but the graph will not show…

sherin_a27
- 153
- 8
0
votes
2 answers
Plotly: Colorize line segments
How do I assign a color to individual line segments using plotly?
Examle:
Plot a parabola where the line color indicates its slope.
import numpy as np
from plotly import graph_objects as go
x = np.linspace(-1, 1, 101)
y = x**2
# Slope in-between of…

MauiMuc
- 50
- 6
0
votes
1 answer
Can yaxis be dynamically added into an graph_objects Layout in plotly?
In my practical training that I'm undergoing right now there is a python script that reads a CSV file and plots against selected columns of that file. However the selection of headers is hardcoded, so if anybody wants to use the script they have to…

andreasN
- 3
- 2
0
votes
1 answer
Sorting Box Plots by Median using Plotly Graph Objects
I'm pretty much a beginner in plotly/pandas/data but I'm trying to make this graph and no matter what I search up, I can't find any attributes that are compatible with dictionaries. The data I'm using is the Time series download speed for 9…

Bea
- 1
- 3
0
votes
1 answer
plotly rendering bug with python 3d plot
I am using plotly and python to visualize 3D data and I encoutered a strange phenomenon when plotting some data. The following code visualizes data of the form (3,20) each for the direction x,y and z.
import numpy as np
import plotly.io as…

simknorke
- 53
- 5
0
votes
1 answer
Plotly Graph Object Size not chanding with 'renderer' keyword in fig.show()
when I try to use the renderer = 'svg' in plotly fig.show(), I am not able to change the size of the figure, when using the below command.
fig = go.Figure(data = [
go.Pie(values = target_distribution, labels = labels, textinfo =…

Rishabh Rao
- 139
- 2
- 6
0
votes
1 answer
plotly dash display graph_objects pie chart inside html elemet
I am trying to display pie chart inside html div as below:
html.Div([
go.Figure(data=Piedata)
])
I got an error:
“An object was provided as children instead of a component, string, or
number (or list of those). Check the children property”
If I…

wael
- 11
0
votes
0 answers
How do put a white frame arround a plotly figure
My goal is to produce this plot:
With this code:
import pandas as pd
import plotly.graph_objects as go
premium_growth_data =…

Druss2k
- 275
- 2
- 5
- 15
-1
votes
1 answer
How to distinguish 2 parameters have same name while writing function?
I want to write a function to plot population pyramid but i don't know how to distinguish 2 parameters have same name, i want to write a function based on code below. There are 2 name, 'Unmarried Men' and 'Unmarried Women', and 2 title, 'Compare…

Phan
- 11
- 6
-1
votes
1 answer
Modify colour of titles in plotly graphical objects
How can I change the colours of xaxis and yaxis title's from plotly.graph_objs?
The documentation is a little bit confusing.
dcc.Graph(
id='old_faithful',
figure={
'data': [
go.Ohlc(
x = df['timestamp'],
…

NW0910
- 1
- 4