Skip to main content

All Questions

Tagged with
1 vote
1 answer
24 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 ...
william_grisaitis's user avatar
0 votes
1 answer
39 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....
vijesh's user avatar
  • 1,163
0 votes
1 answer
31 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 &...
Ernest Au's user avatar
0 votes
0 answers
40 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), ...
dan's user avatar
  • 6,242
1 vote
1 answer
96 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 ...
SIV0625TriX's user avatar
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 ...
Bramminator's user avatar
0 votes
1 answer
39 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....
Václav Bočan's user avatar
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 ...
Otto_P's user avatar
  • 11
1 vote
1 answer
76 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 ...
Matteo's user avatar
  • 209
1 vote
0 answers
17 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 ...
Alexandra Payne's user avatar
0 votes
1 answer
55 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 ...
The Buggser's user avatar
0 votes
0 answers
52 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. ...
Vitto Titto's user avatar
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 ...
soran hajo dahl's user avatar
0 votes
0 answers
108 views

Python plotly animated scatter plot, show all colours on the legend

Hi all, I have a plotly animated chart where the colour of the chart changes based on a discreet value in the "Vol" column. However the legend on the left only shows one colour on the chart ...
user2461546's user avatar
0 votes
2 answers
259 views

How to fix the legend of plotly 3D scatter plots in Python?

I am trying to create some 3D scatter plots using plotly in Python. I have a data frame with some personality traits and cluster labels, and I want to plot the TSNE embeddings for each trait using ...
DavidS's user avatar
  • 77

15 30 50 per page
1
2 3 4 5
10