Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Wednesday, May 10th, 2006

Subject:plotting directed paths on lattices
Time:11:00 pm.
Image

I've tried googling, but I'm not sure if what I'm looking for is far too specific or I don't have my search words just right. It seems like plotting paths is common enough to exist in a python module somewhere (I'm also willing to venture into Matlab or wherever what I want exists already, if it indeed does). And I don't want to reimplement the implemented.

The exact problem, and an example is this: I want to visualize directed paths on 2D lattices, allow repeats of edges and represent them graphically, and label the edges (optionally the nodes). A digraph seems pretty plausibly in some python module out there (SciPy?), but the issue with labeling the directed edges and representing a brand new directed edge for every edge specified seems non-trivial.

As an example, say I have the square plane lattice with points at integral spacing in the x and y directions. I have the path a-b-a-b and want to label all 3 edges with a number, their nodes with a letter, as featured in the picture.

Is there a module which has the machinery for something near to what I've described? Even just taking care of arcing the directed edges allowing for a visual representation of repeated start-end node pairs would be great enough.
Comments: Read 3 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image