MATLAB Answers

Info

この質問は閉じられています。

Any way to preserve the native resolution of data when saving a figure?

4 ビュー (過去 30 日間)
JDC
JDC 2017 年 10 月 12 日
Closed: Rena Berman 2019 年 12 月 12 日
I've seen many ideas about changing paper size and the adjusting "-r" parameter, but it appears that all this does is take the on-screen displayed resolution and reproduce that at finer resolution. It doesn't get to the issue of saving a figure, whose data resolution is, say 1800x3200, to an image format that preserves that resolution on zoom. Is there any way to force MATLAB to save the figure as an image that would preserve that native high resolution - the way the .fig file would?

  17 件のコメント

表示 14 件の古いコメント
JDC
JDC 2017 年 11 月 15 日
Maybe. More likely that there are people who understand computer science more than you or who are able to admit they don't understand the problem without being petulant. So the problem has been defined now? Hmmm, it was pretty clear you STILL didn't understand the problem. I'll take your removal as a sign that your approach was wrong, your suggestions were unhelpful, and your "businesslike" responses were less-than-businesslike.
JDC
JDC 2017 年 11 月 15 日
Yet you keep coming back to continue to "edit" your responses. Yes, that's much more polite. And clever too, since the forum doesn't get to see your original less-than-polite responses. So I hope you are in fact done since there are people who have to go back to solving problems with rigor and understanding.
Rena Berman
Rena Berman 2019 年 12 月 12 日
(Answers Dev) Restored edit

件の回答 (1)

Cam Salzberger
Cam Salzberger 2017 年 10 月 12 日
Hello,
It's a little hard for me to understand what you are asking for. You want an image that, when you zoom in on it, it increases its resolution (so you don't see chunky pixels)?
In that case, it sounds like you're looking for vector format images. Any raster format (JPG, PNG, etc.) will have a fixed resolution. When you zoom in, a single data point (pixel) of the image will grow to fit multiple pixels on the screen. A vector format (EPS, PDF, etc.) stores data on the "objects" within the image, rather than the pixels themselves. Thus, when you zoom in on a line, it recalculates what the line should look like on-screen, and will display it smoothly.
See the print documentation page (specifically the section on Vector Graphics Files) for information on your options.
-Cam

  25 件のコメント

表示 22 件の古いコメント
Jan
Jan 2017 年 11 月 16 日
A newcomer drops into the forum, asks an unclear question and gets upset due to questions for clarifications. He accuses two long term high reputation users for "spamming" and "trolling" and tries to attack with off-topic insults, sarcasm and parody. Finally he announces to disturb threads of other users. There is no doubt, who acts like a troll here.
JDC, your excitement is not impressing and nobody will care about your personal opinions. Walter (mainly) and I have posted more than 45'000 answers in this forum with great success and we will proceed with our style of communication. I do not have to defend against you, how I try to help to solve a problem or what I write while talking with another user. You simply do not have the power to influence, what I write.
The customs in the forum will not be changed, because one user is not satisfied in his first thread. You can check, how this forum works, and decide for yourself if you want to participate productively - or not. this is your decision and I cannot influence it by asking some questions for clarifications.
JDC
JDC 2017 年 11 月 16 日
This is unclear. You need to try to explain this again. I can help you if you just make a one line statement of what you are trying to do. Have you tried adjusting the -r parameter?
This is not a meaningful task. Instead of "asks an unclear question" you should write "a question that is unclear". It does not help if the members of the forum agree with you, that there should be something, when they know, that there is one already.
Obviously you care, otherwise you'd stop posting. But you can't because you just can't get that darn print function to work. I know you said it would work but it just doesn't seem to be doing what you said it would do. Try saving at -r15000000, see if that helps.
JDC
JDC 2017 年 11 月 16 日
Also, why do you keep saying HE and HIS. Are you sexist and only allow males to use MATLAB?

サインイン してこの質問に回答します。


Translated by