Drawing shapes outside the plot area

I would like to be able to draw a triangle on the graph outside the axes and plot area. I have used fill before, but that was in the plot area. Can someone push me in the right direction?

···


“The game of science can accurately be described as a never-ending insult to human intelligence.” - João Magueijo

Hello Bryan,

···

On Tuesday 06 May 2008 20:07:58 Bryan Fodness wrote:

I would like to be able to draw a triangle on the graph outside the axes
and plot area. I have used fill before, but that was in the plot area.
Can someone push me in the right direction?

Would it be helpful to have a axes instance in the background like:
---------------------------------------------------------------------
from pylab import *

figure(1)
ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.9')
ax2 = axes([0.3, 0.3, .4, .4], axisbg='white')

ax1.plot(arange(10), color='b')
ax2.plot(linspace(0.0, 1.0, 10.0)**2, color='g')

show()
-----------------------------------------------------------------------

regards Matthias