BrianChung10 / SOP

2 stars 1 forks source link

Trouble with printing the images as pdf #10

Closed GianfrancoVieri closed 2 years ago

GianfrancoVieri commented 2 years ago

Hi, @dlfivefifty @ioannisPApapadopoulos , may I know how to get the julia plots in visual studio code as pdfs instead of png? We tried printing the png and convert it to pdf but the image quality is bad. Is there any other way where we can directly let julia plot our graphs in pdfs instead of png? Thanks!

ioannisPApapadopoulos commented 2 years ago

How are you saving the plots? save it with a .pdf extension instead of .png

GianfrancoVieri commented 2 years ago

Hi @ioannisPApapadopoulos , I save it in the visual studio code and it has only option of saving it as .png , I am not sure how to save it with a .pdf extension though?

ioannisPApapadopoulos commented 2 years ago

p =plot(...) savefig(p,"plot.pdf")

GianfrancoVieri commented 2 years ago

hi @ioannisPApapadopoulos, yeah I think it works now, thanks a lot John.