Pymatgen: Band Structure Legend

I am using Pymatgen’s BSPlotter.get_plot function. I save my plot as plt1, and I am trying to adjust the location of the legend box using plt1.legend(loc = ‘upper right’) based on this link: matplotlib.pyplot.legend — Matplotlib 3.3.4 documentation
Unfortunately, I get the following error: “No handles with labels found to put in legend.”

Since the handles and labels are defined within the get_plot function, is there a way to remedy this? Many thanks!