[Scilab-users] datatips in multiple axes plot

CRETE Denis denis.crete at thalesgroup.com
Thu Sep 30 13:09:40 CEST 2021


Hello,
I tried to use the example of "newaxes" in the help files, but I can't create any datatip (because of frames ???)...
With the example of "sca" in the help files, I can create datatips on all 3 curves (distributed on 2 different sets of axes). In this case, the subplots do not overlap.
If the axes_bounds vectors are changed to [0,0,1,1] for both sets of axes, so that now they overlap, then I could not create datatips anymore.

If you are looking for a workaround, then changing the order of the axes may be a solution. It should be possible to implement it by a new menu button created with uimenu (and as many submenus as the number of axes -1), each with a callback like "swap_handles(axes_1, axes_n)".
HTH
Denis

De : users <users-bounces at lists.scilab.org> De la part de CHEZE David 227480
Envoyé : jeudi 30 septembre 2021 09:57
À : Users mailing list for Scilab <users at lists.scilab.org>
Objet : [Scilab-users] datatips in multiple axes plot

Dear all,

I found a limitation in the datatip manager of any figure window, as illustrated in the screen capture below, from the "multiple scaled plots" example : the datatip manager can catch only the last axe that was plotted, in the example only the red curve. This is a pity since it might be needed to ask datatip for other curves as well when analysing experimental data for instance.
I tried to set first axe as the current axes, sca(gcf().children(3)), but I didn't manage to get the datatips for the first black curve.
Do you see any reason for this limitation? Enhancement suggestion ?


David

[cid:image001.png at 01D7B5F6.9E231300]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210930/a7f57e5f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 39190 bytes
Desc: image001.png
URL: <https://lists.scilab.org/pipermail/users/attachments/20210930/a7f57e5f/attachment.png>


More information about the users mailing list