All Questions
153
questions
1
vote
1
answer
29
views
Showing or saving only the legend of a plotly figure
Given a plotly figure with traces and a legend, is there a way to only show the legend without any of the plot content?
My use case for this: I'm exporting several images with the same legend. Instead ...
0
votes
1
answer
53
views
Add size legend to plotly.express.scatter_mapbox
I have a visualization done using plotly.express.scatter_mapbox. It basically shows the different institutions on the Saudi Arabia map. These institutions are marked by small circles that are color ...
0
votes
1
answer
40
views
How to prevent hiding plotly chart bar on chart legend click
How to prevent hiding plotly chart bar on chart legend click in an angular application.
<plotly-plot
[divId]="graph.selectedGraph.name"
[data]="graph.selectedGraph....
0
votes
1
answer
40
views
How to reverse legend order without affecting bar order in Plotly R? [duplicate]
I am creating a stacked bar chart using Plotly in R, and the order of the items in the legend is the reverse of the order that I want.
library(dplyr)
library(plotly)
library(forcats)
set.seed(1)
df &...
0
votes
0
answers
41
views
R's plotly ggplotly removing legend from a geom_point
I'm generating a simple geom_point plot with R ggplot2:
library(dplyr)
library(ggplot2)
set.seed(1)
df <- matrix(runif(16, 0, 10), nrow = 4, ncol = 4, dimnames = list(paste0("R", 1:4), ...
1
vote
1
answer
105
views
How to customize the legend order for a 3D scatter plot?
I'm trying to generate a 3D scatter plot and the shapes of markers correspond to 'Treatment' (IC, IT, YS), whilst, the colors correspond to 'Time' (0, 2, 4, 6, 12, 24, 48, 72). Everything went well ...
0
votes
0
answers
26
views
Entrywidth argument not working in R plotly
I am trying to make an interactive plot with the plotly package. The legend needs to be next to the image and have a certain width. I now have the issue that the default appears to be that the legend ...
0
votes
1
answer
40
views
Change layout of legend2 in plotly
How to change layout of legend2 with fig.update_layout()?
import plotly.express as px
import pandas as pd
numbers = pd.DataFrame([[1,2,3,4], [2,3,4,5], [5,7,8,8]])
asdf = px.line(numbers)
asdf = asdf....
1
vote
2
answers
60
views
Unwanted characters in GGPlot 2 legend entries for stacked area chart
Good day,
I need to prepare a graph showing the proportions of the various biomass components, but it is showing ,1 after each component in the legend in R, Ggplot2. I only want to see the list of ...
1
vote
1
answer
80
views
plotly title_side position not working properly
I'm greenhand with Python plots but I was trying to do a PCA for different human populations; while I'm still working on the actual data, the main issue I'm having with visualizations in Python, as ...
0
votes
0
answers
21
views
plotly express legend not responsive to any attempt at adjustment (including complete removal)
I am doing a visualization for a paper im writing about differences in specific stances between men and women.
In order to do this, i want to create a plotly figure with 4 subplots. This worked great, ...
1
vote
0
answers
18
views
Legend repeatition for scatter subplots in poltly express
I have a dataframe and I have plotted four different columns of the dataframe each with a 5th column and colour them based on a 6th categorical column as subplots in the same figure.
I want to have ...
0
votes
1
answer
57
views
Legend and labels for Plotly express line graph
I want to draw a three graphs on one x-y axes using Plotly.express.
I've read a CSV file of monthly returns using pandas, and have a pandas dataframe containing four series: Date, IRA, MSCI and SnP.
I ...
0
votes
0
answers
53
views
Imshow Plotly colour toggling using legend
I'm currently working on a data visualisation using Plotly in Python, and I've hit a bit of a roadblock.
I have a 2D array representing image data, and I'm using plotly.express.imshow to display it. ...
0
votes
0
answers
32
views
Placement of plotly legend labels
Plotly places legend labels to the right of their respective "boxes" by default. If possible, I would like to place the labels below the boxes.
I have produced a plotly figure with ...