All Questions
8
questions
0
votes
1
answer
293
views
Legend doesn't show up in Plotly Express line subplots
There are several answers for showing the legend if you're using plotly.graph_objs. I'm only using plotly_express though, and can't get the legend to show up when using several subplots.
I have the ...
0
votes
1
answer
60
views
Unable to visualize legend correctly in matplotlib
I am trying to visualize this graph with a lineplot, but the legend is not working correctly as you can see in the image below.
The problems are three:
two rectangles appear in the second and fourth ...
0
votes
1
answer
553
views
How to plot every label once in matplotlib legend with corresponding color? [duplicate]
How can I only show a name once in the legend with corresponding color instead of index?
data = {'x':[0, 1, 2, 3, 4],
'y':[4, 3, 2, 1, 0],
'Name':['Tom', 'Nick', 'Tom', 'Nick', 'Emma']...
-2
votes
1
answer
136
views
Adding a Legend to Pandas Scatterplot
I am using the Pandas version of Scatter, not Matplotlib. How would I add a legend to this graph based on the colors?
-1
votes
1
answer
233
views
Issue with Label in Stacked Bar chart in Matplotlib from a Pandas Dataframe
I have a Dataframe with a column (say 'Col') with values either from this list ['PO101','NI101','NE101'].
Count is:
PO101 = 30000
NI101 = 5000
NE101 = 3000
I am trying to show how many are which on ...
1
vote
0
answers
112
views
Matplotlib Legend and colormaps from panda dataframes
I am trying to plot some graphs with Python. Specifically I am working with dataframes. I would like to know how to do the next couple of things:
Adapt the legend of the plots using the correspondant ...
1
vote
0
answers
2k
views
Putting the legend outside the plot in pyplot and pandas
I am trying to get my legend outside the plot but some of its gets cropped.
My data:
Origin China India Pakistan Philippines United Kingdom of Great Britain and Northern Ireland
Year ...
17
votes
1
answer
27k
views
add a line to matplotlib subplots
I would like to do a subplot of two figures with matplotlib and add a horizontal line in both. This is probably basic, but I don't know how to specify that one of the lines should be drawn in the ...