[Scilab-users] Vectorial export to PDF

Adelson Oliveira adelson.oliveira at gmail.com
Wed Nov 28 17:11:23 CET 2012


Hi,

Scilab (5.4.0) allows for exporting figures to vectorial and bitmat formats
as, for example, PDF and PNG.
Sometimes I hide portions of a picture using a white rectangle. This brings
no problem for bitmap formats. Vectorial formats are different.

The following code draws a white rectangle over an empty box in Scilab
5.4.0. I converted it to PNG and PDF (attachments) formats. A comparison
between them shows that in the PDF file the white rectangle is over the
surrounding box while the PNG doesn't show it.

What can be done to have PDF and PNG files looking equally ?

Scilab code:

xfpolys([0;[0:18]';18],[0;ones(19,1);0],-8)
plot2d(0,0,1,"012"," ",[0,0,21,2])

PS: For a visible rectangle, change the xfpolys command to,

xfpolys([0;[0:18]';18],[0;ones(19,1);0],-1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121128/a1d1e0a3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure.png
Type: image/png
Size: 2302 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20121128/a1d1e0a3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure.pdf
Type: application/pdf
Size: 1175 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20121128/a1d1e0a3/attachment.pdf>


More information about the users mailing list