Hello Federico,

Le 03/04/2019 à 17:42, Federico Miyara a écrit :

Dear all,

Is there any standard way to add an arrow head to axes in a plot?

I have found a function xarrows which allows drawing arrows, so it could be used as a workaround. But what I actually mean is something specific for axes which instead of using a plain line style uses one ended with an arrow head.

There is no dedicated axes property to do that.

You may use xstring() as below.
Bounds and arrows directions to use to set the arrows positions will depend on the axes orientation (reverse or not) and position (top/bottom | left/right)

Regards
Samuel

clf
plot2d()
ax  =  gca();
ax.box  =  "off";
b  =  ax.data_bounds

xstring(b(1),b(4),"↑")
set(gce(),  "clip_state","off",  "text_box_mode","centered",  "font_size",4)

xstring(b(2),b(3),"→")
set(gce(),  "clip_state","off",  "text_box_mode","centered",  "font_size",4)

Le 03/04/2019 à 17:42, Federico Miyara a écrit :
Dear all, Is there any standard way to add an arrow head to axes in a plot? I have found a function xarrows which allows drawing arrows, so it could be used as a workaround. But what I actually mean is something specific for axes which instead of using a plain line style uses one ended with an arrow head. Regards, Federico Miyara
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to