Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский

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

Aide de Scilab >> Graphiques > Datatips > datatipSetStyle

datatipSetStyle

Set the datatip style.

Calling Sequence

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

Arguments

polyline_handle

The handle of the polyline where the tip is.

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;
d1=datatipCreate(e(1),540);
function str=mydisplay(pt),str=msprintf('%0.2g', pt(1)),endfunction
datatipSetDisplay(d1,"mydisplay")
datatipSetStyle(e(1),2,%f)
datatipSetOrientation(d1,"upper left");

d2=datatipCreate(e(2),200);
datatipSetStyle(e(2),1,%t)
datatipSetOrientation(d2,"lower left");

See Also

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

History

VersionDescription
5.4.0 Function datatipSetStyle introduced.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:54:34 CEST 2014