Name

datatipSetOrientation — Search the nearest datatip of a given point.

Calling Sequence

      datatipSetOrientation(tip_handle,orient)
    

Parameters

tip_handle

A handle on a datatip.

orient

A character string with possible values: "automatic" "upper left" "upper right", "lower left", "lower right".

Description

Set the position on the text box with respect to the curve point. With the "automatic" orientation the program makes the choice to keep the text box within the plot boundaries.

Examples

 
    x=linspace(-20,20,1000);
 
    clf()
    plot(x,sinc(x),x,sinc(x^2));
    e=gce();e=e.children
    d1=datatipCreate(e(1),500);
    d2=datatipCreate(e(2),200);
    datatipSetOrientation(d2,"lower left") 
    

See Also

datatips, datatipCreate, datatipRemove

Authors

Serge Steer, INRIA