14,623 questions
0
votes
0
answers
9
views
Issue with plotly dash filters
I'm using the following script to generate a stacked and grouped bar plot.
from plotly import graph_objects as go
data = {
"left": [
{"original": 15, "model_1&...
2
votes
1
answer
36
views
Double bar stacked bar plot in plotly dash
I'm trying to create a double bar stacked bar chart using plotly.
I found this code:
from plotly import graph_objects as go
data = {
"original":[15, 23, 32, 10, 23],
"model_1&...
0
votes
1
answer
37
views
Individual marker.line is not always refelcted in the legend
Disclaimer. I am working with R but the question is actually a general plotly question (I am just faster generating a plot in R than in vanilla JS).
I have the following code, which adds a border ...
2
votes
0
answers
47
views
Keep unused levels in plotly barchart
My data features a factor, where not all levels are present in the data. I want to draw a bar chart, but keep all levels in the legend.
In the following plot you can see that the legend features only ...
-6
votes
0
answers
40
views
Shaded closed surface 3d in matplotlib [closed]
I am trying to reproduce this figure in Matplotlib
While generating the data and plotting it using trisurf is straight forward I am have some difficulty to figure out how the tube like diagram is ...
1
vote
2
answers
58
views
Speeding up Rendering of R 3D-Surface plot using plotly
In R, I have a list with n×m matrices. From that, I want to create a plotly plot in R-Shiny, where each matrix is its own surface, and the value of the matrix give the z value of the surface on a ...
1
vote
1
answer
60
views
Plotly choropleth - change width to rectangular
I'm making an R Shiny application that uses a choropleth to display some data. The plotly version works well, but I can't find how to adjust its sizing to make full use of the space.
It always looks ...
0
votes
0
answers
19
views
Title in the JSON file for a Plotly plot cannot be rendered by react-plotly.js library in a React Web App
In my React Web App, I would like to use "react-plotly.js" library to render a Plotly plot from the JSON file exported from Python.
An example of the JSON file is:
{
"data"...
1
vote
1
answer
20
views
plotly python: go.chloroplethmap location auto zoom
I cannot seem to find a similar question here on SO, but please direct me there if such a question already exists.
I have a function that plots values on a map, as below. The graph works fine. Note ...
0
votes
0
answers
33
views
How to remove distance/gap between bars on plotly?
I'm trying to make a graph of the ISM services time series data, where the recession periods are indicated via semi transparent bars on top of the graph.
Input code:
fig1b = go.Figure()
fig1b....
0
votes
1
answer
25
views
save table in python as image
I want to save a dataframe as a table in python.
Following https://plotly.com/python/table/, I can save a table as an image, but only the first few rows, not the entire dataset.
Is there a way to ...
1
vote
0
answers
32
views
How to use contour labelformat in plotly python?
I am trying to adjust labels for level contours. Example is given below. However, while it doesn’t cause any errors, there is no visible change in the labels.
import numpy as np
import plotly....
2
votes
1
answer
90
views
How to position a label at the end of a period in Plotly using R
My main query: I wish to create a chart with a date x axis in R using plotly. I wish to display the date for a period at the end of the period.
I am facing some difficulty with this.
Here is a MWE:
...
1
vote
0
answers
57
views
How to make Plotly figure legend be right to left instead of left to right
I have this plot with horizontal legend. I want the legend title to be on the right instead of the left, and I want the bullets of each legend item to be on the right of the name instead of on the ...
0
votes
1
answer
41
views
Plotly date display using UNIX timestamp data in browser timezone
My data comes as a Pandas DataFrame with a datetime index, that is generated from UNIX timestamps. I would like to display the data in a Plotly chart in the browser's timezone, but haven't figured out ...