D和A线的单独标题:
from matplotlib.pyplot import *
ds = [1,2,3]
dc = [1.1, 1.9, 3.2]
asim = [1.5, 2.2, 3.1]
ac = [1.6, 2.15, 3.1]
categories = ['simulated', 'calculated']
p1, = plot(ds, 'ko', label='D simulated')
p2, = plot(dc, 'k:', label='D calculated')
p3, = plot(asim, 'b+', label='A simulated')
p4, = plot(ac, 'b-', label='A calculated')
p5, = plot([0], marker='None',
linestyle='None', label='dummy-tophead')
p7, = plot([0], marker='None',
linestyle='None', label='dummy-empty')
leg3 = legend([p5, p1, p2, p5, p3, p4],
[r'$D_{etc}$'] + categories + [r'$A_{etc}$'] + ca