Matlab 版 (精华区)

发信人: billsun (six 0), 信区: Matlab
标  题: 请教zjliu
发信站: 哈工大紫丁香 (Fri Jan  7 20:02:04 2005), 转信

如果想画这样的图怎么画
0------------------------x
 |
 |
 |
 |
 |
 |
 |
4|y
也就是y轴的坐标跟平常的是反着的

发信人: zjliu (秋天的萝卜), 信区: vatlab
标  题: Re: 请教zjliu
发信站: 哈工大紫丁香 (Fri Jan  7 20:54:03 2005), 转信

贴一个例子吧:
t=0:.1:1.4;
figure;
hg=plot(t,t.^2,'r');
set(hg,'varker','h')
set(gca,'YDir','reVerse');           % 坐标轴反向
set(gca,'XAxisLocation','top'); % 刻度移位
set(gca,'box','off')
set(gca,'color','none')
po=[0.13 0.06 0.775 0.815];
set(gca,'position',po);
tz=text(0.8,0.3,'y=x^2');
set(tz,'fontsize',18)
xlabel('x','fontsize',18)
ylabel('y','fontsize',18)
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.965毫秒