sgrid(): labelling is sometimes ambiguous ; named colors can't be specified
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
After restoring sgrid() that is presently broken due to the bug 15878
(for example see https://help.scilab.org/docs/6.0.1/en_US/sgrid_en_US_2.png
on https://help.scilab.org/docs/6.0.1/en_US/sgrid.html)
some improvements look mandatory.
Let's look at this example before it was broken:
https://help.scilab.org/docs/5.5.0/en_US/sgrid.html
We can notice the following issues:
A) Big circles have no label
=> We could label all of them along the longest diagonal of the plot, in addition to labels on the vertical right side.
B) Rays are sometimes labeled in an ambiguous way. Here labels "0.16" to "0.76" are not clearly ascribed.
=> Labels positioning must be more accurate.
C) Default values of rays labels are irregular.
=> We may improve the series of default values.
D) When some Wn values are provided, the xmin data bound does not take max(Wn) into account.
This is visible on the top plot https://help.scilab.org/docs/5.5.0/en_US/sgrid_1.png:
After clf, there is not preset data bounds to cope with, and the X axes should be
set such that the circles 1.5 and 2 are complete. This is not the case.
E) Colors may presently be specified only with their indices. This is inconvenient,
because indices refer to a given color_map. Specifying colors in an "absolute"
(and more handy) way by their names or their #RRGGBB codes should become possible.
HOW TO REPRODUCE THE BUG:
-------------------------
Run sgrid() examples.
OTHER INFORMATION:
------------------
Same situation with Scilab 6.0.1