[Scilab-users] datatips in multiple axes plot
Stefan Du Rietz
sdr at durietz.se
Fri Oct 1 14:04:02 CEST 2021
Sorry,
I missed a "2":
function y = yblu(yin)
y = -1 + log10(yin)*2/3
endfunction
Stefan
On 2021-10-01 12:58, Stefan Du Rietz wrote:
> Hello David,
>
> if you don't need automatic scaling, you could use drawaxis() to get the
> second and third y-axis and then scale the y-data of those lines to plot
> them in the first axes. In your figure:
>
> function y = yblu(yin)
> y = -1 + log10(yin)/3
> endfunction
>
> function y = yred(yin)
> y = -1 + yin * 2/240
> endfunction
>
> Then plot x and the function value of y.
>
> Regards
> Stefan
>
>
> On 2021-09-30 09:56, CHEZE David 227480 wrote:
>> 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
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
More information about the users
mailing list