On 6/30/2016 9:04 AM, Xuenan Xing wrote:
> Hi everyone,
>
> Just now I found a very easy way to get high quality figures from Matlab,
>don't have to write codes, just click your mouse.
>
> Run your code--get figures--click "File" in the figure window--choose
>"Save as"--click "Format"--choose "Scalable Vector Graphics file (*.svg)"--a *.svg
>file of your figure will be created--but *.svg is not a common file format,
>then--open the *.svg (usually in Browser), save it as PDF or print
>it as PDF--then you will get a PDF file of your figure, and
>with "Vector feature", that is no matter how big you zoom in the figure,
>the lines and numbers and so on will not lose their qualities.
>
> Hope this can help.
>
But why would you save to svg, then convert it to pdf, when you can
save to pdf directly? both svg and pdf are vector graphics.
you think the pdf will be better quality this way?
Also, pdf is much smaller than svg. I just saved this figure
>> x=0:.1:1;
>> plot(x,sin(x))
And the pdf image was 2,081 bytes while svg was 18,447.
For use in Latex and pdfs, you'd want your images in pdf. SVG
is only for HTML and web pages use.
> Best,
> Xuenan Xing
>
> Hi everyone,
>
> Just now I found a very easy way to get high quality figures from Matlab,
>don't have to write codes, just click your mouse.
>
> Run your code--get figures--click "File" in the figure window--choose
>"Save as"--click "Format"--choose "Scalable Vector Graphics file (*.svg)"--a *.svg
>file of your figure will be created--but *.svg is not a common file format,
>then--open the *.svg (usually in Browser), save it as PDF or print
>it as PDF--then you will get a PDF file of your figure, and
>with "Vector feature", that is no matter how big you zoom in the figure,
>the lines and numbers and so on will not lose their qualities.
>
> Hope this can help.
>
But why would you save to svg, then convert it to pdf, when you can
save to pdf directly? both svg and pdf are vector graphics.
you think the pdf will be better quality this way?
Also, pdf is much smaller than svg. I just saved this figure
>> x=0:.1:1;
>> plot(x,sin(x))
And the pdf image was 2,081 bytes while svg was 18,447.
For use in Latex and pdfs, you'd want your images in pdf. SVG
is only for HTML and web pages use.
> Best,
> Xuenan Xing
>