|
From: Tommy G. <tg...@ma...> - 2008-01-24 14:13:46
|
I have a plot that is divided into four subplots.
pylab.figure()
pylab.subplot(221)
pylab.plot(a,b,"k-")
pylab.subplot(222)
pylab.plot(a,b,"k-")
pylab.subplot(223)
pylab.plot(a,b,"k-")
pylab.subplot(224)
pylab.plot(a,b,"k-")
I would like to add a title to the entire plot, but pylab.title() only
applies to the most recent subplot. I have tried
pylab.figure()
pylab.subplot(111)
pylab.title("Title Here")
pylab.subplot(221)
pylab.plot(a,b,"k-")
pylab.subplot(222)
pylab.plot(a,b,"k-")
pylab.subplot(223)
pylab.plot(a,b,"k-")
pylab.subplot(224)
pylab.plot(a,b,"k-")
but this does not work as I do not create a plot for
the subplot(111) instance. Is there some way of getting
the type of title I want easily?
Cheers
Tommy
|