matlab对图片进行缩放,[转载]用set命令matlab缩小和放大图片的方法

用set命令matlab缩小和放大图片的方法

在matlab里直接使用10.5大小的字体(5号字体),

并调整图片的大小(50%),按厘米

set(gcf,'Units','centimeters','position',[12 2 12 8]);

set(gca,'xtick',-8:1:2,'ytick',[0:0.25:1]);%设置刻度

set(gcf,'Units','centimeters','Position',[10 10 7

5]);%设置图片大小为7cm×5cm

%get hanlde to current axis返回当前图形的当前坐标轴的句柄,

%(the first element is the relative distance of the axes to the

left edge of the figure,...

%the second the vertical distance from the bottom, and then the

width and height;

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磅

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值