Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: graphViz and compass pointed labels

by fhew (Beadle)
on May 27, 2010 at 08:33 UTC ( [id://841891]=note: print w/replies, xml ) Need Help??


in reply to Re: graphViz and compass pointed labels
in thread graphViz and compass pointed labels

> headlabel, taillabel and labeldistance, port_label_distance, labelangle

None of these directly address my problem. The symptom is:

Since I have many edges that may go into the same port/label in a target node, each edge appears as a unique line that comes from 'wherever' the source node is into the center of the target node. ie.

+---+ +---+ | A | | B | +---+ +---+ \ / \ / target target \ / +-----+ | D | +-----+ / target / / +---+ | C | +---+

What I would prefer is that all edges that target the same label should enter the target node at the same spot. That also means that it should re-orient the nodes to minimize any overlap accordingly, In my simple example above, that effectively means that all the source nodes should end up on 'the same side as the target node. ie. something like this:

+---+ +---+ +---+ | C | | B | | C | +---+ +---+ +---+ \ | / \ | / \ | / target \|/ +---+ | D | +---+

Or evern more cleanly... allow the target label to exist 'within' the target node rather than on the 'edge'. Ie. the port is labeled, rather than each and every edge-endpoint.

+---+ +---+ +---+ | A | | B | | C | +---+ +---+ +---+ \ | / \ | / \ | / \ | / \|/ +---------+ | target | | | | D | | | +---------+
It would make for 'cleaner' graphs!

Replies are listed 'Best First'.
Re^3: graphViz and compass pointed labels
by Anonymous Monk on May 27, 2010 at 12:08 UTC
    Here is hack, uses separate compass_pt argument for $to because i don't grok dot :) It seems to work
Re^3: graphViz and compass pointed labels
by Anonymous Monk on May 27, 2010 at 10:34 UTC
    None of these directly address my problem.

    I don't pretend to understand your problem, but I don't even know which GraphViz program you're using :) I suggest you create a tiny program and try the debug method to figure out where to patch GraphViz.pm.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://841891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found