On Wed, May 7, 2008 at 9:17 AM, Søren Nielsen
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm plotting lines on top of an image using the plot command, trying to make
> polygons. I click one point on an image and another point, and a line is
> drawn between them. I'm also showing a guide line, so that the user can see
> the line before pressing the mouse button.. All i'm doing is taking the last
> point that the user clicked on and plot a line between that point and the
> current point under the mouse cursor. New chosen points are appended to
> nPolygonPointsX and Y. This works ok, but it's a bit slow.

Take a look at the animation tutorial:

http://www.scipy.org/Cookbook/Matplotlib/Animations

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to