loss of details using "print"

Hi everyone~
I was trying to plot some nice graphs. I tuned everything. It shows what I want in the Matlab plot window. But when I use command "print" to save the plot as a graph file, I lose some details.
How I print is:
set(gcf,'Position',[50 100 1200 500]);
set(gcf,'PaperUnits','inches','PaperPosition',[0 0 6 3])
print(gcf,'-dtiffn','-r600', name));
Anybody has any idea/advice please let me know. Thanks a lot~

Answers (1)

Jan
Jan on 12 Sep 2013
Edited: Jan on 12 Sep 2013
If you set the tick labels of the color bar manually instead of letting Matlab choose them automatically, the internal resizing for the export does not try to determine a nicer set of ticks.
The shown image does not look like it has a resolution of 600 dpi.

3 Comments

Yuji Zhang
Yuji Zhang on 12 Sep 2013
Edited: Yuji Zhang on 12 Sep 2013
Hi Jan~
Thanks for discussion! So you mean, if I do it manually, the "print" command should not automatically change the ticks, right?
The picture doesn't look like 600 dpi because I shrink it. Here's the authentic picture.<<https://lh3.googleusercontent.com/-bbv5GVk2svY/UjIvuEJDCKI/AAAAAAAAA3o/p_UZF0sjs3U/w1004-h540-no/matlab+question2.png>>
Let me know what you think. Any discussion is appreciated. Thanks~
Yes, simply try to set the ticklabels manually and see what happens.
Hi Jan~
Ahh i see what you mean! I didn't say it clearly: I already manually set the ticks. Before I setting it, the plot in the Matlab didn't have "1" either.
Now I set it, the plot in Matlab has "1". But when I "print" it, it disappeared....
set(cbar,'XTick',[0.2 0.4 0.6 0.8 1]);
colormap jet(200)
set(gcf,'Position',[50 100 1200 500]);
set(gcf,'PaperUnits','inches','PaperPosition',[0 0 6 3])
print(gcf,'-dtiffn','-r600', name);

Sign in to comment.

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Tags

Asked:

on 11 Sep 2013

Community Treasure Hunt

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

Start Hunting!