471,616 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

matplotlib fill command on axes plot problem

I am trying to use the fill command to draw a box around an object in
an image. I can get the box drawn, but there seems to be a side
effect. The fill command is adding white lines to the top and
sometimes right side of my axes plots. I am using small images,
124x200, and after the fill command the axes plot is changed to
140x200, with the top 16 lines being all white. I am running it in
interactive mode from the python command line. Here is code that
reproduces the problem.

from pylab import *
im_array = zeros((124,200))
fill([x-5,x+5,x+5,x-5],[y+5,y+5,y-5,y-5],ec='r', fill = False)

Any thoughts on what I might be doing wrong?
Jan 4 '08 #1
0 1698

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by John Hunter | last post: by
1 post views Thread by Jorl Shefner | last post: by
8 posts views Thread by Andi Clemens | last post: by
12 posts views Thread by orangeDinosaur | last post: by
reply views Thread by Soren | last post: by
4 posts views Thread by Bill Jackson | last post: by
9 posts views Thread by Glenton | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.