Text on 3D graphics

How would I put text up in a 3D graphics window (plotted with scatter3d() )? The text functions, e.g. xnumb(), seem to only work with a 2D window.

Hello,

You are right, scilab is missing 3d aware text functions. To draw text in 3d, e.g. with xnumb, you have to do it this way:

x = rand(20,1);
y = rand(20,1);
z = rand(20,1);
scatter3d(x,y,z);
xnumb(x,y,1:20);
h = findobj(gce().parent,"type","Text");
h.data(:,3) = z($:-1:1)';

1 Like