I am plotting football ball markers as two separate scatter plots, one with a hexagon path and one with pentagon path. However, I can only get them to stack in the legend using a HandlerTuple in the legend. This requires knowledge of how legend handles and labels work and also needs to be done at the end of a plot.
If possible, I would like to hide the creation of the legend marker in a class method using a custom Handler and update the default handler map of the first scatter plot. However I have not been able to align the custom handler with the default legend markers created by scatter.
Here’s my problem:
I am not sure what to do next. Any help appreciated! Here’s the code for the various options I have tried so far: https://github.com/andrewRowlinson/mplsoccer/blob/0.0.4/tests/football_marker_legend.ipynb