Boxes and relationships

Hi all

Just dropped in to your list after drawing a blank in your archives. I am attending an Open Source Developers Conference in Melbourne as we speak and got a referral to you from an admirer.

I'm looking for a Python (I'm new to python and graphics sw) module to visualise subsets of a database of related entities by printing boxes joined by lines.

The entities are linked with named n:m relationships and I'd like to select one and display it in a box (with the entity name) and all related entities likewise in boxes linked to each other by lines representing the relationships tagged with the names of those relationships.

I'm thinking I need some clever stuff to ensure as few lines as possible cross and mess up the visualisation.

At first glance I would say we have a mismatch and your very impressive software is probably overkill for what I want. If I'm on the wrong tram with matplotlib I'd appreciate a redirect. Otherwise, if anyone is prepared to say matplotlib is the way to go I'll download it and start playing.

Thanks heaps

mike

Hi Mike,
Take a look at pydot <http://dkbza.org/pydot.html&gt;\. I think John Hunter may have used this in the matplotlib manual.
There's an ER diagram in the Graphviz (which pydot wraps) examples:
<http://www.graphviz.org/Gallery/undirected/ER.html&gt;
Enjoy the conference. I'm too cheap to attend :frowning:
Gary Ruben (from Melbourne)

Mike Dewhirst wrote:

···

Hi all

Just dropped in to your list after drawing a blank in your archives. I am attending an Open Source Developers Conference in Melbourne as we speak and got a referral to you from an admirer.

I'm looking for a Python (I'm new to python and graphics sw) module to visualise subsets of a database of related entities by printing boxes joined by lines.

The entities are linked with named n:m relationships and I'd like to select one and display it in a box (with the entity name) and all related entities likewise in boxes linked to each other by lines representing the relationships tagged with the names of those relationships.

I'm thinking I need some clever stuff to ensure as few lines as possible cross and mess up the visualisation.

At first glance I would say we have a mismatch and your very impressive software is probably overkill for what I want. If I'm on the wrong tram with matplotlib I'd appreciate a redirect. Otherwise, if anyone is prepared to say matplotlib is the way to go I'll download it and start playing.

Thanks heaps

mike

Thanks guys - downloading as I sleep :slight_smile:

Regards

mike

Tim Leslie wrote:

It sounds like what you're after would be better done with the graphviz set of programs.

http://www.graphviz.org/

I've used it a couple of times to do various things and it's a pretty amazing package. I don't know of any python libraries for it, but I havn't really looked. Let us know if this meets your needs.

Cheers

Tim

Gary Ruben wrote:

···

Hi Mike,
Take a look at pydot <http://dkbza.org/pydot.html&gt;\. I think John Hunter may have used this in the matplotlib manual.
There's an ER diagram in the Graphviz (which pydot wraps) examples:
<http://www.graphviz.org/Gallery/undirected/ER.html&gt;
Enjoy the conference. I'm too cheap to attend :frowning:
Gary Ruben (from Melbourne)

Mike Dewhirst wrote:

Hi all

Just dropped in to your list after drawing a blank in your archives. I am attending an Open Source Developers Conference in Melbourne as we speak and got a referral to you from an admirer.

I'm looking for a Python (I'm new to python and graphics sw) module to visualise subsets of a database of related entities by printing boxes joined by lines.

The entities are linked with named n:m relationships and I'd like to select one and display it in a box (with the entity name) and all related entities likewise in boxes linked to each other by lines representing the relationships tagged with the names of those relationships.

I'm thinking I need some clever stuff to ensure as few lines as possible cross and mess up the visualisation.

At first glance I would say we have a mismatch and your very impressive software is probably overkill for what I want. If I'm on the wrong tram with matplotlib I'd appreciate a redirect. Otherwise, if anyone is prepared to say matplotlib is the way to go I'll download it and start playing.

Thanks heaps

mike