Using python, I want to place a small square on figure that I have. I am trying to do that using matplotlib.patches.Rectangle.
My problem is that I want it to appear outside the axes of the figure. So say my y axis runs from 0 to 100, I want my square to appear at, say, 110.
But currently, I create my rectangle (there are actually multiple), then create a PatchCollection object and finally add it to the axis:
ax.add_collection(my_collection).
So because this is an axis object, it doesn't make sense to ask the rectangle to appear outside the range of the axis. The code runs, but the rectangles are never visible (or maybe I can just see the edges peeking out if I want it to appear at a y axis of, say 95):
How can I place a rectangle that will appear outside the axes. Do I have to create another set of axes or something like that?