[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/plotxy]

lscan

(/tools/hpmatlab/toolbox/matlab/plotxy/lscan.m)


Function Synopsis

[Pos]=lscan(ha,wdt,hgt,tol,stickytol,hl)

Help text

 LSCAN Used by LEGEND to determine a "good" place for
	the legend to appear. LSCAN returns either the
	position (in figure normalized units) the legend should
	appear, or a -1 if no "good" place is found.

       LSCAN searches for the best place on the graph according
       to the following rules.
           1. Legend must obscure as few data points as possible.
              Number of data points the legend may cover before plot
              is "squeezed" can be set with TOL. The default is a 
              large number so to enable squeezing, TOL must 
              be set. A negative TOL will force squeezing.
           2. Regions with neighboring empty space are better.
           3. Top and right are better than bottom and left.
           4. If a legend already exists and has been manually placed,
              then try to put new legend "close" to old one. 

	LSCAN(HA,WDT,HGT,TOL,STICKYTOL,HL) returns a 2 element
 	position vector. WDT and HGT are the Width and Height of
	the legend object in figure normalized units. TOL
 	and STICKYTOL are tolerances for covering up data points.
	HL is the handle of the current legend or -1 if none exist. 

	LSCAN(HA,WDT,HGT,TOL) allows up to TOL data
	points to be covered when selecting the best
	legend location.

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON