plotly Questions

1

I'm building a r / plotly chart with multicategory x-axis. I found a way to define two x-axis categories with rbind(), but can't seem to find a way to rotate x-axis tick labels for both categories ...
Lilywhite asked 27/9, 2019 at 13:23

1

I wish to NOT show the inner category label in a multi-catogory bar chart using plotly graph-objects Further, I wish to rotate the label of the outer category label This is my code import pandas ...
Instate asked 29/10, 2021 at 9:59

2

Solved

When I try to import plotly.express I get the error: ImportError: Plotly express requires pandas to be installed. The installation notes did not mention having to install anything additional. I ca...
Larrikin asked 30/8, 2020 at 11:22

2

After a long search, I could not find any thread/discussion helping me to make autoscaling work with plotly. The idea would be that when I use the x-range slider to go through the data, the y-axis ...
Rhine asked 29/3, 2023 at 11:12

5

Solved

I am trying to save a simple plotly figure to a directory. I understand it needs kaleido (I have version '0.2.1') and also at least plotly '5.3.1' which are installed. However trying to save the im...
Twelvemonth asked 14/2, 2022 at 21:39

3

Solved

I want to reverse the y-axis of the graph I've obtained for all the over-plots using plotly.graph_objects. I know reversing of the axis can be done using plotly.express. But I would like to know ho...
Penner asked 29/11, 2019 at 6:58

16

Solved

I am trying to create a Sankey chart in a Jupyter notebook, basing my code on the first example shown here. I ended up with this, which I can run without getting any errors: import numpy as npy i...
Katzir asked 1/2, 2018 at 10:10

1

Is there a way to lock hovertext in place when I click a datapoint? I would like to be able to click and HTML hyperlink in the text, or copy a key from the text into another system.
Unfit asked 11/5, 2020 at 22:6

2

Solved

I have a scatter plot with two or more different data sets. For each data set I also added a hline of their means. I would like to link the hline to the legend of the corresponding dataset so that ...
Choral asked 15/6, 2022 at 8:8

5

Solved

I'm currently using the plotly service to graph some water quality data. I've added some lines to represent the the various stages of water quality, with them shaded so they are green, yellow, and ...
Busywork asked 31/8, 2015 at 20:39

19

Whenever I am trying to compile the following code to get a line graph shows some errors. But I don't know how to fix it. Here is my code : import plotly.plotly as py import plotly.graph_objs as go...
Arrange asked 1/3, 2017 at 1:45

2

From other questions about this (in R though) I understood that you should be able to use HTML in (some?) text elements in Plotly. However, if I try this to get a new line in a text I add to my plo...
Study asked 20/3, 2019 at 14:24

3

Solved

Is it possible to format hoverlabel so that the background color is transparent & it's possible to see the plot through the labels? I can set it to a solid color by e.g. hoverlabel = list(bgcol...
Inenarrable asked 4/5, 2021 at 14:18

4

Solved

I have been experiencing errors while generating charts using Plotly and it seems to be affecting most of the charts I try producing on it. The error also seems to be a duplicate across all the fai...
Byronbyrum asked 5/8, 2018 at 3:30

3

I usually do plots with Plotly and save them as standalone HTML files, which is extremely convenient for sharing them with colleagues and to "freeze" the data that is being displayed. Thi...
Stanfordstang asked 4/1, 2021 at 11:8

2

I would like to be able to select and copy the hover text in plotly graphs. Is that possible with the R API? For example, in this heatmap, upon mousing over coordinates (X=a, Y=d), one can see the ...
Telamon asked 18/4, 2016 at 10:1

2

Solved

I have a multi-line graph that displays percent increase over time. I'd like to set a threshold in my code to have an upper and lower bound. If the line falls outside these bounds, I'd like that sp...
Supinator asked 9/11, 2020 at 23:1

4

Solved

I got a line chart, with multiple lines that represent sine waves with different frequencies. I want to take a look at a specific wave, with all the rest out of the graph. I know that I can click,...
Synecology asked 9/9, 2019 at 14:21

4

I am using plotly (the offline version) within an IPython notebook and I like it a lot. However I couldn't find a way to plot a vertical line or a vertical band. The equivalents in matplotlib are:...
Jenellejenesia asked 1/7, 2016 at 16:45

2

Solved

How to add a superscript or a subscript to an axis label to a 3D plot in plotly? I tried to use bquote, but it did not work. Googling did not bring much on the matter either. Scavenged code: li...
Ferbam asked 24/7, 2017 at 13:52

9

Solved

How do I obtain the default colors list / palette for plots with multiple series? (e.g. bubble chart)
Omission asked 18/11, 2016 at 9:29

3

Solved

How can i change the size of cells in a plotly express heatmap? I would need bigger cells import plotly.express as px fig1 = px.imshow(df[col],color_continuous_scale='Greens') fig1.layout.yaxis.typ...
Eadith asked 6/10, 2020 at 22:41

2

Solved

I am trying to figure out which traces the user hides from a scatter plot by means of deselecting them in the interactive legend of plotly. I have read this SO post, and the similar questions lin...
Jagir asked 22/2, 2019 at 8:11

1

Solved

My goal is to link highlighting between a plotly figure in one panel and a map in the second panel. For my purposes, I want to select (highlight) data in one panel and have the selected data highli...
Olnay asked 1/7, 2021 at 20:59

2

Solved

for each subplot I have 3 seperate line:2017 ,2018 and 2019 with 3 times "go.Scatter", each subplot represents one country (25 countries) with always these 3 years. I can use the subplot ...
Hufnagel asked 1/7, 2020 at 13:50

© 2022 - 2024 — McMap. All rights reserved.