December 3rd, 2012, 03:03 PM
Why is my "add_patch" script not working
# I am trying to plot an image with a tilted rectangle on it.
# I need a bunch of images with different rectangles. So I use "for" loop.
# The 1st image is fine.
# But the 2nd image have both the 1st and the 2nd rectangles on it.
# Could you help me figure out whats the problem?
My script is something like:
for i in range(len(ID)):
fig = plt.figure(1)
ax = plt.subplot(1,1,1)
December 3rd, 2012, 04:34 PM
December 3rd, 2012, 05:43 PM
I think the main problem might be in the "for" loop.
Its a problem that for the 2nd image, I only want to plot a certain rectangle for it. While at the moment, the rectangle for the 1st image is also plotted on the 2nd image.
The script that makes the rectangle is fine.
The examples don't have this kind of answers.
Originally Posted by b49P23TIvg