Getting an object in Python Matplotlib
问题 To make a plot, I have written my code in the following fashion: from pylab import * x = [1,2,3] y = [1,2,3] matplotlib.pyplot.scatter(x,y,label='Blah') matplotlib.pyplot.legend(title='Title') matplotlib.pyplot.show() I want to change the font size of the legend title. The way to go about this is to get the legend object and then change the title that way (e.g., How to set font size of Matplotlib axis Legend?) Instead of rewriting all my code using ax.XXX, figure.XXX, etc, is there any way to