Area plot is not exporting high quality figure

4 ビュー (過去 30 日間)
MAzharul Islam
MAzharul Islam 2021 年 3 月 19 日
コメント済み: MAzharul Islam 2021 年 3 月 19 日
I am trying to draw two area graph from timeseries variable stored in workspace. But the quality of the figure I am getting is not so good as that of plot graph. The quality of the output figure is very good if I use plot command instead of area command. Is there any way to get the same high quality figure for the area graph too??
I have tried to export as svg, emf, tif, pdf to use with 'Word'.
subplot(2,1,1)
% plot(P.time, P.data,'linewidth',2) % gives high quality figure output
area(P.time, P.data,'linewidth',2) % doesn't give high quality figure output
hold on
area(Pd123.time, Pd123.data,'linewidth',2);
subplot(2,1,2)
plot(I.time, I.data, 'linewidth', 1.3)
hold on
plot(Id123.time, Id123.data, 'linewidth', 1.3);
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 3 月 19 日
plot() would be vector graphics. area() uses patches, which are surface graphics, which would be rasterized for everything other than possibly svg() or pdf(). In practice it would probably be rasterized for pdf() as well.
MAzharul Islam
MAzharul Islam 2021 年 3 月 19 日
So, theres no way to get good qulity output.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 3 月 19 日
If you have older systems, use the FEX contribution export_fig() .
If you were using R2020a or later, you could use exportgraphics() https://www.mathworks.com/help/matlab/ref/exportgraphics.html
  3 件のコメント
Walter Roberson
Walter Roberson 2021 年 3 月 19 日
Use the Add-on Explorer to install export_fig
MAzharul Islam
MAzharul Islam 2021 年 3 月 19 日
I have tried exprtgraphics from one of my friends pc since my Matlab is 2019a. Figure quality improves but legend overwrite margins.

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by