Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
55 views

I'm trying to create a bar plot where my legend appears in a particular order (Asia, Europe, Africa). I also want the bar plot to be ordered by Value, another column in my dataframe. To solve this, I ...
michael james's user avatar
0 votes
2 answers
61 views

I have a graph objects Figure and I want to set custom axis titles. I've found how to do it with update_layout() for plotly express figures, but I haven't found a way to do it with a go.Figure(). (...
Redz's user avatar
  • 784
0 votes
1 answer
54 views

I am trying to plot some data using plotly graph_objects. X axis has dates as categories and Y axis has depth values. I realized my graph becomes less visible when there is a relevant quantity of data....
user026's user avatar
  • 702
3 votes
0 answers
52 views

I’m working with Plotly’s go.Cone function to visualize 3D data. In my plot, I’m representing cones with positions (x, y, z) and directions (u, v, w), where the components u, v, and w correspond to ...
Willy Menacho Nacho's user avatar
0 votes
0 answers
158 views

I am trying to save a graph objects fig as a PNG (or any other format) but it seems to hang and not do anything I have tried import plotly.graph_objects as go fig = go.Figure( data=[go.Bar(x=[1, ...
Jung Hun Kim's user avatar
0 votes
1 answer
1k views

How is it possible to manipulate the spacing between rows(e.g. increasing the space between fist two rows and final two rows) and the size of charts inside the figure (e.g. making pie chart bigger)? ...
Tohid's user avatar
  • 632
3 votes
0 answers
189 views

I am trying to achieve a plotly Figure like the following furthier down but instead of the whiskers to show the min and max, I want the percentiles 10th and 90th and I cannot figure a way to make it ...
Newbielp's user avatar
  • 532
1 vote
1 answer
96 views

As shown below, map A is created using plotly.express and map B using plotly.graph_objects.' I’d like to ask to align and overlap map A on top of map B while keeping the animation on map A. map A (...
oat's user avatar
  • 57
0 votes
0 answers
61 views

I want to display q1, q3 using concept of interpolation='linear' only in case of violin & box plots while using plotly.graph_objects.Box or Violin. I observed by default q1 and q3 are set using ...
Siddhartha Saha's user avatar
0 votes
1 answer
425 views

I have a code as below, which basically uses plotly and plots multiple columns of dataframe. The below code works fine. But I want use this graph as a subplot. Imagine having 3 rows and 2 columns and ...
Sanjeev Kallepalli's user avatar
1 vote
1 answer
201 views

I am trying to display percentages outside of the bottom (dark orange) trace on my graph. Here is my code: bar2 = go.Figure() bar2.add_trace(go.Bar(name = 'Halted Trials', x = ...
Becca's user avatar
  • 11
1 vote
1 answer
63 views

Using plotly.graph_objects modules Scatter3D & scatter3d.Line I can't get the line colors to fall within the range of the define color scale. I tried the following code, that plots points as ...
Jelle Poland's user avatar
0 votes
0 answers
2k views

Plotly docs says I can use go.Table and use key of columnwidth and an array with the widths. Well this isn't doing much because my columns are still cutoff and cannot be made wide enough. Any ideas on ...
Michael Paccione's user avatar
0 votes
1 answer
73 views

Currently, I have a plot with 2 scatter plots. I have done this using graph_objects in plotly using the append_trace method. But the color scale of the 2 plots are overlapping as shown in the figure. ...
optimistic-orange's user avatar
0 votes
0 answers
206 views

I am making a ternary plot in plotly a needed to use graph_objects because express didn't support certain things I needed to do. While I was drawing a line on my plot. Plotly ignores one of the points ...
nobody567's user avatar
2 votes
1 answer
1k views

I tried to make a plot and save it as svg. When I run the code that makes the plot (I'm using Jupyter), it makes the plot, and everything works fine. However, if I try to save it as svg the program ...
Azamat's user avatar
  • 121
0 votes
0 answers
638 views

I would appreciate any assistance in resolving the below issue. i have tried to find a resolution to the error messages in existing questions (e.g., Import error in plotly while using FigureWidget) ...
kot's user avatar
  • 1
0 votes
1 answer
510 views

I have a dataset with columns for week and month respectively, and I would like to plot variable in time using both week and month as labels. Can something like this be done with plotly in python? ...
Lukas Tomek's user avatar
0 votes
1 answer
163 views

I wonder if is possible to make a sublot with different columns size and number per each row USING PLOTLY.GRAPH_OBJECTS and PLOTLY.SUBPLOTS. like the photoes (sry for the hand made). [img 1 row 1 has ...
Salvatore Saladino's user avatar
1 vote
0 answers
83 views

Let's suppose I have a plotly graph_objects.Figure object containing a scatterplot: y = np.random.rand(10) x = np.random.rand(10) names = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'L'] fig ...
Sala's user avatar
  • 480
0 votes
0 answers
275 views

I created a graph object bar chart that has two different y-axes so that I can chart two different of different units for each category. However, now I'd like to add two horizontal lines. They won't ...
tttito's user avatar
  • 1
0 votes
1 answer
105 views

I tried to overlay a 'threashold' line on a bar graph but didn't managed to have a clean graph. Here is my pandas DataFrame: import pandas as pd df = pd.DataFrame({'Nutriment' : ['Glucides (g)', '...
Marie-Olive's user avatar
0 votes
1 answer
1k views

I am trying to draw some squares in a ploty application. I realized that ploty sometimes decides the size of the viewable area based on the objects inside it (which makes sense) but other times its ...
Daniel Cruz's user avatar
  • 2,419
0 votes
0 answers
52 views

I want to add percentage valued dropdown in plotly graph and after selection of option wanted to pass it to my function um = [ dict( active=-1, buttons=list([ dict(...
Sonali Shelke's user avatar
0 votes
1 answer
483 views

fig = go.Figure() f = [] hours = range(0, 60) pts = [rd.randrange(11, 100, 13) for i in range(1, 61)] for i in range(1, 61): f.append(go.Frame(data=[go.Scatter(x=list(hours[1:61]), y=list(...
Sonali Shelke's user avatar