[Scilab-users] ?==?utf-8?q? Incorrect color in function

Federico Miyara fmiyara at fceia.unr.edu.ar
Fri Apr 10 18:15:35 CEST 2020


Antoine,

I prefer the syntax without "then", it works, it is supported and the 
"then" seems redundant, but as you say, it is not related to that.

Thanks,

Federico Miyara

On 10/04/2020 11:03, Antoine Monmayrant wrote:
> Hello,
>
> It seems that you're missing a "then" but nonetheless, the problem is really related to legend(), wich is weird.
> I can reproduce your color bug with
>
> function a()
>      if %t then
>          plot()
>      else
>          legend()
>      end
> endfunction
>
>
> but not with
>
> function a()
>      if %t then
>          plot()
>      else
>          legen()
>      end
> endfunction
>
>   (only difference legend()->legen()).
>
> Antoine
>   
> Le Vendredi, Avril 10, 2020 15:28 CEST, Federico Miyara <fmiyara at fceia.unr.edu.ar> a écrit:
>   
>> Dear all,
>>
>> When writing the following script in SciNotes (v. 6.1):
>>
>> function y = testcolor(t)
>>       if 1==1
>>           y = sinc(t)
>>           plot(t, y)
>>           legend("sinc")
>>       else
>>           y = 1
>>       end
>> endfunction
>>
>> the end of the if structure appears with the same brownish color as the
>> endfunction. Strangely, if copying and pasting here or into a word
>> processor document, the color is the expected purple (that's why I
>> removed all colors in this message).
>>
>> It seems that the culprit is the legend clause.
>>
>> Regards,
>>
>> Federico Miyara
>>
>> _______________________________________________
>> 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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200410/942ad769/attachment.htm>


More information about the users mailing list