Scilab 3d Plot Datatips

261 Views Asked by At

I am plotting some data in Scilab as 3d-Scatter plot (Scilab 6). With the datatip toggle it is able to show some information about each data point: x,y,z value. I am actually plotting node-values, x,y are the coordinates, z is the damage. Is it possible to change the output of the datatip? I would like to display a node-label instead of the coordinates using the datatip-function!

Thank you!

2

There are 2 best solutions below

1
On

Use datatipSetDisplay (cf. examples in help page)

0
On

You can set a custom diplay function per "PolyLine" object in your plot, e.g.

t=0:0.1:10;y=sin(t);
function s=mydatatip(h),s="DATATIP",end
plot(t,y)
datatipSetDisplay(gca().children(1).children(1),mydatatip)

Please note, here gca().children(1).children(1) is a handle to the "PolyLine" object of the plot.