Matlab 2014b, figures are blurry as .png or .jpg, but not when the file is run

18 次查看(过去 30 天)
I'm running Matlab version 2014b and I'm having issues with my figures. When my figures pop up after the code is running, they look great. I attached a screenshot of what these look like, the document is titled "Screenshot of Figure.pdf"
However, when I save this figure as a .png or .jpg, the figure turns out blurry. Does anyone know what i can do to fix this?
This is an example of the code I'm running:
subplot(3,2,6)
[cs,h]=contourf(Qstep,deltarho,tadj*(1/3600),[1:2:50],'color','k');hold on; grid on
set(h,'LineStyle',':');
set(gca, 'FontName', 'Times New Roman')
clabel(cs,h,'fontsize',8,'color','k');
set(h,'TextList',[1:2:15 17:10:50]);
xlabel('Transport (Sv)');
ylabel('\Delta \rho (kg/m^3)');
title({'t_a_d_j (hours) Adjustment Time for Foot of Front to Reach Equilibrium'})
x1=0.01;
x2=0.25;
y1=0;
y2=2.5;
x = [x1, x2, x2, x1, x1];
y = [y1, y1, y2, y2, y1];
plot(x, y, 'b-', 'LineWidth', 3);hold on;
set(gca, 'FontName', 'Times New Roman')
suptitle({'\alpha=' num2str(alpha)});
saveas(gcf,'Lentz&Helfrich,2002_1.jpg')

采纳的回答

Aquatris
Aquatris 2018-7-17
In the figure, go to File > Export Setup. In the Properties, select Rendering and asign a high Resolution(dpi), such as 600 or even 1200. This might help.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by