问题 I need to annotate a pylab rectangle with few data lines - which are of different length. Searching through the matplotlib documentation, and Googling, I could not find a way to give different parts of an annotation different sizes. The following snippet demonstrates the problem: import pylab from matplotlib.patches import Rectangle pylab.rcParams['verbose.level'] = 'debug-annoying' def draw_rectangle(lower, upper, entry): ax = pylab.subplot(111) r = Rectangle( lower, upper[0]-lower[0], upper