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

34 ビュー (過去 30 日間)
Brett Morris
Brett Morris 2018 年 7 月 17 日
編集済み: Walter Roberson 2018 年 7 月 18 日
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.
  1 件のコメント
Brett Morris
Brett Morris 2018 年 7 月 17 日
My computer runs slow (the file is 5 MB) but it works! Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by