Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Français


datatipSetOrientation

Set the position of the text box associated with the given tip.

Syntax

datatipSetOrientation(tip_handle,orient)

Arguments

tip_handle

A handle on a datatip.

orient

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

Description

Set the position on the text box with respect to the polyline point. With the "automatic" orientation the program makes the choice of the position trying to prevent text from overlapping polyline, it also tries to 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),60);
datatipSetOrientation(d1,"lower left");
datatipSetOrientation(d2,"lower right");

See also

  • datatips — Tool for placing and editing tips along the plotted curves
  • datatipCreate — Create a datatip on a polyline by program
  • datatipRemove — Removes a selected datatip

History

VersionDescription
5.5.2

New "orient" values available: "left", "right", "upper", "lower".

Report an issue
<< datatipSetInterp Datatips datatipSetStyle >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Mar 27 10:12:38 GMT 2023