johnnywang has asked for the wisdom of the Perl Monks concerning the following question:
When you draw a graph, say, even a simple one like a triangle, if you want to label the vertices, it's not straight forward to decide where to put the labels so as not to intersect with the lines. In this particular case, it's not that hard to find a half plane at a vertex that has no lines in it, one can then get a nice box for the label. For a more complicated graph with more than a couple of lines and vertices, is there a good algorithm for finding the right location for a label? I guess there can't be a complete solution, after all, there can be so many lines at a point where it just doesn't leave any space big enough for a label. But are there solutions that work in most of cases? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding the best spot to put a label in a graph
by SciDude (Friar) on Aug 15, 2004 at 00:39 UTC | |
|
Re: Finding the best spot to put a label in a graph
by kvale (Monsignor) on Aug 15, 2004 at 01:42 UTC | |
|
Re: Finding the best spot to put a label in a graph
by gaal (Parson) on Aug 15, 2004 at 06:01 UTC |