Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drawing a zig-zag Trail in Python?

13 views
Skip to first unread message

W. eWatson

unread,
Feb 5, 2010, 10:39:48 AM2/5/10
to
I'd like to draw something like an animal track. Between each point is a
line. Perhaps the line would have an arrow showing the direction of
motion. There should be x-y coordinates axises. PIL? MatPlotLib, ??

mk

unread,
Feb 5, 2010, 11:27:35 AM2/5/10
to pytho...@python.org

Pycairo?

Jean-Michel Pichavant

unread,
Feb 5, 2010, 11:42:43 AM2/5/10
to mk, pytho...@python.org
mk wrote:
> Pycairo?
>
turtle

http://docs.python.org/library/turtle.html

mk

unread,
Feb 5, 2010, 12:08:40 PM2/5/10
to pytho...@python.org
Jean-Michel Pichavant wrote:
> mk wrote:
>> W. eWatson wrote:
>> Pycairo?
>>
> turtle
>
> http://docs.python.org/library/turtle.html

It's in standard library, and therefore Not Cool.

<duck>


Grant Edwards

unread,
Feb 5, 2010, 12:30:46 PM2/5/10
to

I'd probably use gnuplot-py, but I'm probably biased since I've
been using gnuplot since way before I learned Python.

--
Grant Edwards grante Yow! Hello, GORRY-O!!
at I'm a GENIUS from HARVARD!!
visi.com

W. eWatson

unread,
Feb 5, 2010, 9:49:08 PM2/5/10
to
On 2/5/2010 9:30 AM, Grant Edwards wrote:
> On 2010-02-05, W. eWatson<wolft...@invalid.com> wrote:
>
>> I'd like to draw something like an animal track. Between each
>> point is a line. Perhaps the line would have an arrow showing
>> the direction of motion. There should be x-y coordinates
>> axises. PIL? MatPlotLib, ??
>
> I'd probably use gnuplot-py, but I'm probably biased since I've
> been using gnuplot since way before I learned Python.
>
It appears this is easier than I thought. MLB's plot will do it. I can
put arrows at the end of a line, and even use sleep to watch the path
slowly evolving.
0 new messages