由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 如何fix图形的大小
相关主题
How to realize stackplot without mesh in MATLAB?如何在MATLAB里交互式改变图形形状
How to export excel table to a text file automatically?need help about matlab
matlab下如何控制生成图片的大小请教一个有限元的问题
请教大牛们matlab 里调用c++[转载] MatLab如何输出图形?
请问matlab能否调整floating point的mantissa bit-widthhelp: how to simplify many many "elseif" loops?
64位系统安装matlab 缺少compiler请教一个maple或matlab画图的问题
[转载] Latex 图形问题请问图形图像讨论区已经关了吗?
请教一个图像处理的问题Re: 同样的程序产生细微差别的图形
相关话题的讨论汇总
话题: export话题: pixels话题: when话题: dpi话题: setup
进入Computation版参与讨论
1 (共1页)
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.

1 (共1页)
进入Computation版参与讨论
相关主题
Re: 同样的程序产生细微差别的图形请问matlab能否调整floating point的mantissa bit-width
sigmaplot问题(zt)64位系统安装matlab 缺少compiler
请教Matlab中矩阵求逆问题[转载] Latex 图形问题
问一个illustrator 的弱问题,多谢请教一个图像处理的问题
How to realize stackplot without mesh in MATLAB?如何在MATLAB里交互式改变图形形状
How to export excel table to a text file automatically?need help about matlab
matlab下如何控制生成图片的大小请教一个有限元的问题
请教大牛们matlab 里调用c++[转载] MatLab如何输出图形?
相关话题的讨论汇总
话题: export话题: pixels话题: when话题: dpi话题: setup