Save .fig file as .eps file

I have a problem with the "save as" action in .fig window of matlab.
When I save the .fig file as the .eps file, the figure changes. Such as:
The top one is the original .fig file, while the bottom one is the result of saving as .eps file.
I don't know why the line is out of plot window.
Thank you for any advice.

回答 (1 件)

VBBV
VBBV 2023 年 3 月 30 日

0 投票

plot(1:10)
saveas(gcf,'Linechart','epsc')

7 件のコメント

VBBV
VBBV 2023 年 3 月 30 日
Use the command saveas instead of saving it from Figure window. Or keep figure window maximized when saving using saveas action
VBBV
VBBV 2023 年 3 月 30 日
There are several other options you can try e.g. exportgraphics, print commands
I-Chun
I-Chun 2023 年 3 月 30 日
It seems that the problem is still, but thank you very much, I'll try other methods.
VBBV
VBBV 2023 年 3 月 31 日
編集済み: VBBV 2023 年 3 月 31 日
What kind of problem ? can you show /display the snapshot ? Did you try with other methods ? especially with exportgraphics function (most recommended) .
I-Chun
I-Chun 2023 年 3 月 31 日
編集済み: I-Chun 2023 年 3 月 31 日
Yes, I have tried the below code:
exportgraphics(gcf,'filename.eps')
the result is
and
print('filename', '-deps')
the result is
So be it. Moreover, there is no error when saving as .svg file. Just transfer the file.
Thank you for your advice again.
VBBV
VBBV 2023 年 3 月 31 日
exportgraphics(gcf,'filename.eps','Resolution',300)
Have you tried using the resolution argument in export graphics command ?
I-Chun
I-Chun 2023 年 4 月 1 日
Yes, I tried both high and low resolution, but the error is still.

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

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

質問済み:

2023 年 3 月 30 日

コメント済み:

2023 年 4 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by