收藏 分销(赏)

matlab中坐标轴设置技巧.doc

上传人:二*** 文档编号:4591076 上传时间:2024-09-30 格式:DOC 页数:1 大小:17KB 下载积分:5 金币
下载 相关 举报
matlab中坐标轴设置技巧.doc_第1页
第1页 / 共1页
本文档共1页,全文阅读请下载到手机保存,查看更方便
资源描述
(word完整版)matlab中坐标轴设置技巧 Matlab中的坐标轴设置技巧 Matlab中的坐标轴设置技巧 axisoff;                       %去掉坐标轴 axistight;                     %紧坐标轴 axisequal;                     %等比坐标轴 axis([-0。1, 8。1, —1.1, 1。1]);   % 坐标轴的显示范围 x = —pi/2:0.01:pi;  plot(x,sin(x))                  %先绘制个基本图形 % gca: gca, h=figure(.。。); set(gca, 'XLim',[-pi/2pi]);                   %X轴的数据显示范围 set(gca,’XTick',[-pi/2:pi/4:pi]);         %X轴的记号点  set(gca,’XTickLabel’,{'-pi/2’ ’-pi/4:' '0' 'pi/4’ 'pi/2' ’pi*3/4’’pi’})   % X轴的记号 set(gca,'XGrid',’on’);                    %X轴的网格 set(gca,'XDir’,’reverse’);                %逆转X轴 set(gca,'XColor','red’);                  %X轴的颜色 set(gac,'Xscale’,'log')             % x轴以log 形式显示 xlim(min,max) matlab画图设置图片大小以及线宽和字号命令   该文章讲述了matlab画图设置图片大小以及线宽和字号命令。 set(gcf,’Units',’centimeters’,'Position',[1010 7 5]);%设置图片大小为7cm×5cm %get hanlde to current axis返回当前图形的当前坐标轴的句柄, %(the first element is the relative distance of the axes to the left edge ofthe figure,... %the second the vertical distance from the bottom, and then the width andheight; set(gca,'Position',[.13 .17 。80 。74]);%设置xy轴在图片中占的比例 set(get(gca,'XLabel’),'FontSize',8);%图上文字为8 point或小5号 set(get(gca,’YLabel'),’FontSize’,8); set(get(gca,’TITLE’),'FontSize',8); set(gca,’fontsize’,8); set(gca,'linewidth’,0.5); %坐标线粗0。5磅 set(gca,'box’,’off');%Controls the box around the plotting area set(get(gca,’Children'),’linewidth’,1.5);%设置图中线宽1。5磅
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 教育专区 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服