![]() This did not produce any errors but did not produce an output on Ubuntu even after changing around several parameters. Less successful test #6: plt.savefig('filename.pdf')Īnd then converting to jpeg on the command line: Less successful test #5: plt.savefig('filename.pdf')Īnd opening in GIMP, and exporting as a high quality png (increased the file size from ~100 KB to ~75 MB) 100 free, secure and easy to use Convertio advanced online tool that solving any problems with any files. Less successful test #4: plt.savefig('filename.pdf')Īnd then converting to png on the command line:Ĭonvert -density 300 filename.pdf filename.pngīut this is still too blurry when viewed close up. Best way to convert your PNG to HDR file in seconds. This also cannot be opened in powerpoint or Google Slides, with the same issue as above. Less successful test #3: plt.savefig('filename.svg') This cannot be opened in Microsoft Office Professional Plus 2016 (so no powerpoint), same with Google Slides. Less successful test #2: plt.savefig('filename.pdf') Using a dpi value of up to 2000 still produced blurry images when viewed close up. This does save the image at a bit higher than the normal resolution, but it isn't high enough for publication or some presentations. Less successful test #1: plt.savefig('filename.png', dpi=300) ![]() OR simply opening the pdf and cropping to the image you need in adobe, saving as a png and importing the picture to powerpoint Pdftoppm -png -r 300 filename.pdf filename Plt.plot(WL, ABS, label='BN', color='red')Įxample graph of what I'm looking for: example graphįor future readers who found this question while trying to save high resolution images from matplotlib as I am, I have tried some of the answers above and elsewhere, and summed them up here.Īnd then converting this pdf to a png on the command line so you can use it in powerpoint: ![]() Plt.plot(WL, T, label='BN', color='blue') WL, ABS, T = np.genfromtxt(fname, skip_header=1, unpack=True) # read file, skip header (1 line) and unpack into 3 variables # loop over all files in the current directory ending with. However, saving the picture by clicking right to the image gives very bad quality / low resolution images. I've used matplotlib for plotting some experimental results (discussed it in here: Looping over files and plotting.
0 Comments
Leave a Reply. |