声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1647|回复: 2

[绘图技巧] 坐标变换!

[复制链接]
发表于 2007-4-6 22:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
在matlab中如何将坐标轴的方向改变,比如x轴方向不变(默认的向右),y轴方向向下,该如何完成???
谢谢!!!
回复
分享到:

使用道具 举报

发表于 2007-4-6 23:20 | 显示全部楼层
原帖由 simple1 于 2007-4-6 22:05 发表
在matlab中如何将坐标轴的方向改变,比如x轴方向不变(默认的向右),y轴方向向下,该如何完成???
谢谢!!!



建议自己多动手,这个问题查找一下关于axes的属性就找到答案了:

XDir, YDir, ZDir             {normal} | reverse

Direction of increasing values. A mode controlling the direction of increasing axis values. Axes form a right-hand coordinate system. By default, x-axis values increase from left to right. To reverse the direction of increasing x values, set this property to reverse.
set(gca,'XDir','reverse')
y-axis values increase from bottom to top (2-D view) or front to back (3-D view). To reverse the direction of increasing y values, set this property to reverse.
set(gca,'YDir','reverse')
z-axis values increase pointing out of the screen (2-D view) or from bottom to top (3-D view). To reverse the direction of increasing z values, set this property to reverse.
set(gca,'ZDir','reverse')



XAxisLocation                top | {bottom}

Location of x-axis tick marks and labels. This property controls where MATLAB displays the x-axis tick marks and labels. Setting this property to top moves the x-axis to the top of the plot from its default position at the bottom. YAxisLocation                right | {left}

Location of y-axis tick marks and labels. This property controls where MATLAB displays the y-axis tick marks and labels. Setting this property to right moves the y-axis to the right side of the plot from its default position on the left side. See the plotyy function for a simple way to use two y-axes.

评分

1

查看全部评分

 楼主| 发表于 2007-4-7 14:57 | 显示全部楼层
谢谢eight!
谢谢!!!!!!!!!!

[ 本帖最后由 eight 于 2007-4-7 15:56 编辑 ]
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-14 05:59 , Processed in 0.065954 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表