[Scilab-users] gcf().anti_aliasing : Confirmation of (un)effect?

Samuel Gougeon sgougeon at free.fr
Mon May 7 14:36:45 CEST 2018


Hello,

The gcf().anti_aliasing figure property was implemented many years ago 
(in the early Scilab 5.x versions).

It aims to reduce the "staircase effect" for lines drawn very close to 
vertical or horizontal directions.

Yet, has anyone ever seen an actual effect on graphic rendering, as 
expected and described in the related SEP#16 
<http://gitweb.scilab.org/?p=scilab.git;a=blob;f=SEP/SEP_016_anti_aliasing.odt;h=e267088c7ed7e5a4cd0ae29b744616332423224e;hb=HEAD> 
?
I never did, whatever were the computer and its graphic card i used.
Still now with Scilab 6.0, i don't see any effect.

The staircase effect can easily be seen with the following code:

x = [0 1];
y = (0:0.02:1)';
y = [y y+0.02]';
clf
plot2d(x,y)
f = gcf();
f.anti_aliasing  // should display "off" (by default)

f = scf();
f.anti_aliasing = "8x";
plot2d(x,y)

Then compare both figures.
I get the following, whatever is the .anti_aliasing value.


Does anyone get anything else, closer to the expected "dithered" rendering?
Either it will be possible to better document the effect of this property,
as requested in the bug report 6777 
<http://bugzilla.scilab.org/show_bug.cgi?id=6777>, or to reopen the bug 
11311 <http://bugzilla.scilab.org/show_bug.cgi?id=11311> reporting
that it is out of work.

Thanks
Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180507/6cd008d9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbhpbgjbciobikhj.png
Type: image/png
Size: 7020 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180507/6cd008d9/attachment.png>


More information about the users mailing list