With new lines styles added, the default grid_style could now be improved (SEP)
@sgougeon)
Reported by Samuel GOUGEON (gridStyles.png (44.66 KB, image/png)
screenshot for plot2d() same with grid_style=3 (current)|7|8|9
BUG DESCRIPTION:
----------------
Since the initial and still current default graphical grid style has been defined in Scilab, other lines styles were defined, noticeably to get smarter grids.
Yet, improving the default grid style has not been implemented.
So, most often we are compelled to change the grid style by hand to get access to smart new ones.
It is just boring.
So, why not changing the default style, for Scilab 6.1.0?
Here is a short code to display the likely most suitable new styles, and compare them to the current one.
The attached screenshot comes from this code.
clf
for i=1:4
subplot(2,2,i)
plot2d()
//param3d()
xgrid();
gca().grid_style=[1 1]*s(i);
title(msprintf("grid_style= %d\n",s(i)),"fontsize",3);
end
gcf().axes_size = [1000 570];
It is useful to try with a 3D grid: just replace plot2d() with param3d() or plot3d() in the code.
We may also think about the fact it is possible to tune the grid color. However, IMO it is not possible to change the default color from currently black to grey (for instance): The black is a protected color and is available whatever is the colormap. It would not be the case with a grey, making the grid color unstable.
This constrain has an impact to choose a default grid style: If the new style is too light (as the 9th style is), it will not be possible to strengthen it (because already deep black). While it will be possible to lighten the style 7 or 8 with a grey color, when deeming it too dense.
This is why my favorite is the #7.
Best regards
Samuel
OTHER INFORMATION:
------------------
A hook to this report will be provided on the users@ mailing list