This is what Copilot was made for. Auto-completing arcane incantations to render the correct font size for the legend, so I don’t have to look them up every time.
(I would be curious to see whether it accounts for freshness at all - does it know the difference between examples in Python 2 and 3?)