用matlab画等值线图时,怎么使图中等值线标注数值上下对齐?我使用contour函数画等值线图,但是数值分布实在太乱,很不美观,看一眼就让人头晕恶心那种……请教各位大虾如何使相邻线上的数值

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 02:08:17
用matlab画等值线图时,怎么使图中等值线标注数值上下对齐?我使用contour函数画等值线图,但是数值分布实在太乱,很不美观,看一眼就让人头晕恶心那种……请教各位大虾如何使相邻线上的数值

用matlab画等值线图时,怎么使图中等值线标注数值上下对齐?我使用contour函数画等值线图,但是数值分布实在太乱,很不美观,看一眼就让人头晕恶心那种……请教各位大虾如何使相邻线上的数值
用matlab画等值线图时,怎么使图中等值线标注数值上下对齐?
我使用contour函数画等值线图,但是数值分布实在太乱,很不美观,看一眼就让人头晕恶心那种……请教各位大虾如何使相邻线上的数值左右或者上下对齐

用matlab画等值线图时,怎么使图中等值线标注数值上下对齐?我使用contour函数画等值线图,但是数值分布实在太乱,很不美观,看一眼就让人头晕恶心那种……请教各位大虾如何使相邻线上的数值
没办法,clabel里'labelspacing'属性可以调整标注的疏密,加入参数'manual'可以手动指定标注的位置.
>> help clabel
CLABEL Contour plot elevation labels.
CLABEL(CS,H) adds height labels to the contour plot specified by H.
The labels are rotated and inserted within the contour lines. CS and H
are the contour matrix output and object handle outputs from CONTOUR,
CONTOUR3, or CONTOURF.

CLABEL(CS,H,V) labels just those contour levels given in
vector V. The default action is to label all known contours.
The label positions are selected randomly.

CLABEL(CS,H,'manual') places contour labels at the locations
clicked on with a mouse. Pressing the return key terminates
labeling. Use the space bar to enter contours and the arrow
keys to move the crosshair if no mouse is available.

CLABEL(CS) or CLABEL(CS,V) or CLABEL(CS,'manual') places
contour labels as above, except that the labels are drawn as
plus signs on the contour with a nearby height value.

H = CLABEL(...) returns handles to the TEXT (and possibly LINE)
objects in H. The UserData property of the TEXT objects contain
the height value for each label.

CLABEL(...,'text property',property_value,...) allows arbitrary
TEXT property/value pairs to specified for the label strings.

One special property ('LabelSpacing') is also available to specify
the spacing between labels (in points). This defaults to 144, or
2 inches.

Uses code by R. Pawlowicz to handle inline contour labels.

Example
subplot(1,3,1), [cs,h] = contour(peaks); clabel(cs,h,'labelspacing',72)
subplot(1,3,2), cs = contour(peaks); clabel(cs)
subplot(1,3,3), [cs,h] = contour(peaks);
clabel(cs,h,'fontsize',15,'color','r','rotation',0)

See also contour, contour3, contourf.
Reference page in Help browser
doc clabel

Matlab如何画等值线图 用MATLAB画等值线图,如何不画0等值线 风化等值线图怎么画 等值线图 matlab如何画出此图! 用matlab画等值线图时,怎么使图中等值线标注数值上下对齐?我使用contour函数画等值线图,但是数值分布实在太乱,很不美观,看一眼就让人头晕恶心那种……请教各位大虾如何使相邻线上的数值 用matlab 怎么才能画平滑的等值线图啊》我用contour画出来的等值线都有折角出现? matlab 等值线图用matlab画z=x.^2+2*y.^2-4*x-2*x*y的等值线图 ANSYS温度分布等值线图怎么画 有了xyz怎么画等值线图? 怎么在surfer同时画多个等值线图就是在一种等值线图上,画另一种等值线! 高中地理等值线图怎么看? 如何画构造等值线图 地层厚度等值线图、沉积相平面展布图、砂岩厚度等值线图、砂岩百分含量等值线图在分析岩相古地理演化要着重用哪些 五维图用MATLAB怎么画,五维等值线图能画吗就我所知,五维图好像是画不出来的,z=f(x,y,a,b)能画出图来吗 用matlab怎么画等高线图,并在图上标出不同的区域 怎么把原始数据加到MAPGIS等值线图上就是把原始数据放到等值线图上面 我用surfer白化,画等值线图,但在边界外还有还有部分等值线图,也就是白化后的图形与边界不符,急 matlab 画等值线图我有两个函数例如 y=x; y=exp(x);如何利用这两个函数画出等值线图其实我是有8个非常复杂的函数,我需要把这8个函数画出他们在一起的等值线图不知道matlab中的函数有没有类似