我已经开始与matplot和管理的一些基本情节,但现在我觉得很难发现如何做一些东西,我现在:(Matplotlib - 全球传说和标题一旁的次要情节
我实际的问题是如何需要将一个全局标题和全局图例放在一个带有子图的图上
我正在做2x3子图,其中有很多不同颜色的图形(大约200)。像
def style(i, total):
return dict(color=jet(i/total),
linestyle=["-", "--", "-.", ":"][i%4],
marker=["+", "*", "1", "2", "3", "4", "s"][i%7])
fig=plt.figure()
p0=fig.add_subplot(321)
for i, y in enumerate(data):
p0.plot(x, trans0(y), "-", label=i, **style(i, total))
# and more subplots with other transN functions
(对此有何看法?:))每个子图具有相同的风格功能。
现在我试图让所有的小插图的全球标题,也是一个解释所有风格的全球传奇。此外,我需要使字体很小,以适应所有200种风格(我不需要完全独特的风格,但至少有一些尝试)
有人可以帮我解决这个任务吗?
全球标题:http://matplotlib.sourceforge.net/examples/pylab_examples/newscalarformatter_demo.html –