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

amonmayr at laas.fr amonmayr at laas.fr
Mon May 7 15:09:24 CEST 2018


Hello Samuel,

With your example, I don't see any difference on the various computers I 
have.
I think I used anti_aliasing in the past but I cannot find back a script 
where I used it.
I think I used it on 3D plots (surf?), maybe for the export to graphic 
files but I am not sure.
If I can find something I'll let you know.

Antoine


Le 07/05/2018 à 14:36, Samuel Gougeon a écrit :
>
> 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
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180507/08060f07/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/08060f07/attachment.png>


More information about the users mailing list