Colors of multiple graphics in bode() plots are reversed wrt colors shown in the legend (scilab 2025.0.0)
Bug Description
The colors in the legends of multiple bode plots are reversed in the legend. It was checked for plots of 2 and 3 functions. Below is a code for 2 plots (blue and black colors are reversed in the legends after execution of the code).
Steps to reproduce
Run the example below, a simple modification of one bode() example.
// modification of bode() example: h2 is a one pole low-pass, to be an 'obvious' bode plot
s = poly(0, 's');
h1 = syslin('c', (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
//num = 22801+4406.18*s+382.37*s^2+21.02*s^3+s^4;
//den = 22952.25+4117.77*s+490.63*s^2+33.06*s^3+s^4;
//h2 = syslin('c', num/den);
h2 = syslin('c', 1/(s+1));
clf(); bode([h1; h2], 0.01, 100, ['h1'; 'h2']); // legends are ordered with systems in bode() call
What is the expected correct behavior?
The two plots shoud have the inverse colors shown in the legend (h1 should black line, h2 should be blue line)
Error log
No error message, the bug shows just in the graphics output of bode().
Edited by Jose Soares Augusto