low quality figure problem when saving as svg or pdf ( using fill function)
Afficher commentaires plus anciens
Hello,
I tried to look through this problem but couldn't find a solution, maybe I am missing something.
The problem happens when creating a figure with "fill" function. When the inputs are small matrices there is no problem and I can get high res images both in svg and pdf format however when bigger matrices are used image gets pixelated and blurry.
A simple example is as follows:
x=rand(10,10);
y=rand(10,10);
z=rand(10,10);
figure,axis equal,
fill(x,y,z)
x1=rand(50,50);
y1=rand(50,50);
z1=rand(50,50);
figure,axis equal,
fill(x1,y1,z1)
When saving those figures in svg or pdf format I get this problem. The figure created using 50x50 matrix becomes low quality.
Did anyone come upon this problem? I would appreciate if somebody points methe right direction.
Réponse acceptée
Plus de réponses (1)
How is the quality different? My saved pdf looks just the same.
x=rand(10,10);
y=rand(10,10);
z=rand(10,10);
figure,axis equal,
fill(x,y,z)
x1=rand(50,50);
y1=rand(50,50);
z1=rand(50,50);
figure,axis equal,
fill(x1,y1,z1)
saveas(gcf,'myfigure.pdf');
3 commentaires
Anton Kogios
le 7 Mar 2023
x1=rand(50,50);
y1=rand(50,50);
z1=rand(50,50);
figure;axis equal
fill(x1,y1,z1)
g=gcf;
saveas(g,'myfigure1.pdf');
g.Renderer='painters';
saveas(g,'myfigure2.pdf');
It takes a while to run and produces a PDF of 55.1MB that takes a while for my PDF viewer to render...
Oguz Korman
le 7 Mar 2023
Oguz Korman
le 7 Mar 2023
Catégories
En savoir plus sur Printing and Saving dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

