Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Only show legend of inner donut

handles, labels = plt.gca().get_legend_handles_labels()
labels_to_skip = len(group_names)
plt.legend(handles[labels_to_skip:labels_to_skip + 2], labels[labels_to_skip:labels_to_skip + 2])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Only #show #legend #donut
ADD COMMENT
Topic
Name
9+7 =