All Questions
7
questions
1
vote
1
answer
53
views
how to avoid over lapping legends and pie chart [duplicate]
I am trying to draw a pie chart using python matplotlib. How to position the legend and pie chart so they are not overlapping each other. My code is as below:
import matplotlib.pyplot as plt
import ...
0
votes
0
answers
210
views
How to map colors from multiple matplotlib subplot pie charts to a single figure legend
So I have been trying to get a legend working for a figure with multiple subplots that contain pie charts. The pie charts can contain any number of manufactures from a set list of manufacturers, but ...
1
vote
1
answer
3k
views
How to show filtered legend labels in pyplot pie chart based on the values of contributions?
I would like to plot a pie chart that shows contributions that are more than 1%, and their corresponding legend label.
I have managed showing the percentage values I wanted on the pie (see script ...
48
votes
1
answer
101k
views
Legend overlaps with the pie chart
Using matplotlib in python. The legend overlaps with my pie chart. Tried various options for "loc" such as "best" ,1,2,3... but to no avail. Any Suggestions as to how to either exactly mention the ...
1
vote
2
answers
5k
views
Python - How to hide labels and keep legends matplotlib?
I would like to remove the labels of a pie chart and keep the legends only. Currently, my code has both. Any idea how to remove the labels?
I've tried the code below:
plt.legend(labels, loc="best") ...
38
votes
2
answers
75k
views
pandas pie chart plot remove the label text on the wedge
the pie chart example on pandas plotting tutorial http://pandas.pydata.org/pandas-docs/version/0.15.0/visualization.html generates the following figure:
with this code:
import matplotlib.pyplot as ...
20
votes
2
answers
96k
views
How to add a legend to matplotlib pie chart?
Using this example http://matplotlib.org/examples/pie_and_polar_charts/pie_demo_features.html
how could I add a legend to this pie chart?
My problem is that I have One big slice 88.4%, the second ...