q***z 发帖数: 543 | 1 请教一个问题: 在matlab中如何fix图形的大小。在export setup中定义的width,
height好像不行呀。
谢谢! | s**i 发帖数: 381 | 2 I have been wondering about the same problem.
We can set the width, height in export setup, which seems to work on screen.
But when you export it into a figure(jpg,png,etc), the resulting image file
resolution is very different.
I used to resize it by graphics software.
【在 q***z 的大作中提到】 : 请教一个问题: 在matlab中如何fix图形的大小。在export setup中定义的width, : height好像不行呀。 : 谢谢!
| p*****e 发帖数: 310 | 3 is it related with the dpi of printer?
screen.
file
【在 s**i 的大作中提到】 : I have been wondering about the same problem. : We can set the width, height in export setup, which seems to work on screen. : But when you export it into a figure(jpg,png,etc), the resulting image file : resolution is very different. : I used to resize it by graphics software.
| s**i 发帖数: 381 | 4 I thought about that too. But I played with DPI can still couldn't get it
right.
【在 p*****e 的大作中提到】 : is it related with the dpi of printer? : : screen. : file
| j**u 发帖数: 6059 | 5 到底是图像size变了还是resolution变了?还是都不对了?
screen.
file
【在 s**i 的大作中提到】 : I have been wondering about the same problem. : We can set the width, height in export setup, which seems to work on screen. : But when you export it into a figure(jpg,png,etc), the resulting image file : resolution is very different. : I used to resize it by graphics software.
| r****y 发帖数: 1437 | 6 an example, if you always want landscape-full-page (letter size)
set(gcf, 'PaperOrientation', 'landscape');
set(gcf, 'PaperPositionMode', 'manual', 'PaperPosition', [0.25, 0.25, 10.5,
8]);
【在 q***z 的大作中提到】 : 请教一个问题: 在matlab中如何fix图形的大小。在export setup中定义的width, : height好像不行呀。 : 谢谢!
| s**i 发帖数: 381 | 7 For example,
if set in export setup: width=800, height=600
the displayed figure is 800x600 pixels, including the menu bars
after exporting into a png file, the image is 1067x800 pixels, resolution
96dpi
When I do this under linux, the image is 824 x 618 pixels.
【在 j**u 的大作中提到】 : 到底是图像size变了还是resolution变了?还是都不对了? : : screen. : file
| s***t 发帖数: 195 | 8 not sur what version you're using. for my 7.4.0, in export setup, the
unit is either inch, cm, or point. i assume you were using points.
a point is 1/72 inch. therefore, when you export to png, it's scaled
to 1067x800 pixels, because [800,600]/72*96=[1096,800]. you can change
resolution in the rendering tab.
【在 s**i 的大作中提到】 : For example, : if set in export setup: width=800, height=600 : the displayed figure is 800x600 pixels, including the menu bars : after exporting into a png file, the image is 1067x800 pixels, resolution : 96dpi : When I do this under linux, the image is 824 x 618 pixels.
| s**i 发帖数: 381 | 9 thank you very much.
When I change the DPI to exactly 72, then I get exactly 800x600 image.
Previously I thought points means pixels but obviously I was wrong.
thanks again
【在 s***t 的大作中提到】 : not sur what version you're using. for my 7.4.0, in export setup, the : unit is either inch, cm, or point. i assume you were using points. : a point is 1/72 inch. therefore, when you export to png, it's scaled : to 1067x800 pixels, because [800,600]/72*96=[1096,800]. you can change : resolution in the rendering tab.
|
|