If one calls Axes.legend()
with only strings (legend labels), then it automatically finds Artists and labels them for the legend. I have a situation where I want to throw away a couple of those Artists and show only some of them in the legend (for example I have a case where it finds 5 Artists but I only want to “legendize” only 3 of them).
I was thinking a good way for me to do this might be to find the same 5 Artists that the legend call finds, and then choose the three that I want and use the version of Axes.legend()
where I pass in both the set of Artist handles and the legend labels.
Any suggestions?
Thanks.