matlab中绘图线条与颜色
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
x=rand(3,2)
bar3(x) 三维柱状图 barh 横向的
pie 饼状图 pie([2 4 3 5],{'North','South','East','West'})
contour 等值线的绘制
view(az,el)、view([az,el]) 指定方位角和俯仰角的大小
plot(x_a,0,'h','MarkerSize',16)
k black d diamond
w white v triangle (down)
^ triangle (up)
< triangle (left)
> triangle (right)
p pentagram 正五边形
h hexagram 正六边形
grid on 坐标带网格线
axis on 显示坐标轴相关标记
[{"area_type":"main_cont","paragraph_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]}],"content":[{"content":[{"text":"b blue . point - solid","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"g green o circle : dotted","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"r red x x-mark -. dashdot","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"c cyan + plus -- dashed","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"m magenta * star (none) no line","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"y yellow s square","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"k black d di
axis square 显示方形的 立体的
length(x)=m
size(x)=(m,n)
mesh surf 绘制三维图(网格图 表面图) meshc 绘制带有等值线的三维网格图
[x,y]=meshgrid(x,y)
hold on 图形保持功能
SUBPLOT(m,n,p) 分子区域绘图
AXIS([XMIN XMAX YMIN YMAX]) 指定坐标轴的范围
matlab中绘图线条与颜色
b blue . point - solid
g green o circle : dotted
r red x x-mark -. dashdot
c cyan + plus -- dashed
m magenta * sຫໍສະໝຸດ ar (none) no line
y yellow s square
bar3(x) 三维柱状图 barh 横向的
pie 饼状图 pie([2 4 3 5],{'North','South','East','West'})
contour 等值线的绘制
view(az,el)、view([az,el]) 指定方位角和俯仰角的大小
plot(x_a,0,'h','MarkerSize',16)
k black d diamond
w white v triangle (down)
^ triangle (up)
< triangle (left)
> triangle (right)
p pentagram 正五边形
h hexagram 正六边形
grid on 坐标带网格线
axis on 显示坐标轴相关标记
[{"area_type":"main_cont","paragraph_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]}],"content":[{"content":[{"text":"b blue . point - solid","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"g green o circle : dotted","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"r red x x-mark -. dashdot","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"c cyan + plus -- dashed","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"m magenta * star (none) no line","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"y yellow s square","type":"text"}],"special_feature":0,"type":"paragraph"},{"content":[{"text":"k black d di
axis square 显示方形的 立体的
length(x)=m
size(x)=(m,n)
mesh surf 绘制三维图(网格图 表面图) meshc 绘制带有等值线的三维网格图
[x,y]=meshgrid(x,y)
hold on 图形保持功能
SUBPLOT(m,n,p) 分子区域绘图
AXIS([XMIN XMAX YMIN YMAX]) 指定坐标轴的范围
matlab中绘图线条与颜色
b blue . point - solid
g green o circle : dotted
r red x x-mark -. dashdot
c cyan + plus -- dashed
m magenta * sຫໍສະໝຸດ ar (none) no line
y yellow s square