Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Graphics > Datatips > datatipSetStyle

datatipSetStyle

Set the tip style for the given polyline datatips.

Calling Sequence

datatipSetStyle(curve_handle)
datatipSetStyle(curve_handle,t [,boxed [,labeled]])

Arguments

curve_handle

A handle on a polyline.

t

A number with possible value 1 or 2. If omitted a choose popup will open.

boxed

A a boolean, default value is %t.

labeled

A a boolean, default value is %t.

Description

There are two different styles for the datatip polyline marker:

- Square mark, centered on the tip point.

- Directional arrows drawn along the tangeant at the tip point. The arrowhead is on the tip point.

If the boxed option is selected the text associated with the datatip is written in a boxed area.

Examples

x=linspace(-20,20,1000);
clf();plot(x,sinc(x),x,sinc(x^2));
e=gce();e=e.children;
function str=mydisplay(curve, pt, index),str=msprintf('%0.2g', pt(1)),endfunction
datatipSetDisplay(e(1),mydisplay)
datatipSetStyle(e(1),2,%f)
d1=datatipCreate(e(1),540);

datatipSetStyle(e(2),1,%t)
d2=datatipCreate(e(2),200);

See Also

  • datatips — Tool for placing and editing tips along the plotted curves.
  • datatipCreate — Create a data tip on a polyline by program
  • datatipInitStruct — Initialize the datatip structure associated with the given polyline.

History

VersionDescription
5.4.0 Function datatipSetStyle introduced.
Report an issue
<< datatipSetStruct Datatips datatipToggle >>

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:
Tue Apr 02 17:36:23 CEST 2013