comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » automatic placement of legend in 2-D graph
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
automatic placement of legend in 2-D graph [message #58172] Mon, 21 January 2008 12:26 Go to previous message
Jean-Paul Davis is currently offline  Jean-Paul Davis
Messages: 17
Registered: March 1998
Junior Member
I use a legend object in a separate model object to show a legend on a
2-D graph consisting of up to six plot objects. Currently I set the
position of this legend once and leave it there. Of course, changes
to the data or zoom scale can cause one or more of the plot object
curves to run right through the legend.

Does anyone have ideas for an easy way to automatically determine the
"best" placement of a legend? Using information on the axes ranges,
legend object boundaries, and plot data themselves, I might be able to
do some fancy calculations involving areas in a plane, probably
limiting myself to a set number of standard positions and picking the
least offensive. But this could be easier if there were a way to
determine the intersections of various objects in a particular view.
I'm interested in ideas related to either approach.

Jean-Paul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Travel Destination: Holland
Next Topic: Re: Re-gridding Problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:15:30 PDT 2025

Total time taken to generate the page: 0.24350 seconds