声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1065|回复: 2

[绘图技巧] 如何使坐标轴以大数开始,以小数结束?

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

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

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

x
请问如何在MATLAB中,使得让坐标轴以大数开始,以小数结束。比如Z周上面为0,下面为10
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
这种问题已经讨论过多次,建议发贴前先搜索论坛.
by xjzuo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

[ 本帖最后由 xjzuo 于 2007-1-31 18:35 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-1-31 13:14 | 显示全部楼层
图形截面编辑中可以顺向(由小到大),也可以逆向(由大到小)。选择逆向即可!(Matlab7.0)

评分

1

查看全部评分

发表于 2007-1-31 14:42 | 显示全部楼层
原帖由 heaventian 于 2007-1-30 22:59 发表
请问如何在MATLAB中,使得让坐标轴以大数开始,以小数结束。比如Z周上面为0,下面为10



楼上的提示是界面实现,下面是程序实现的介绍:


  1. XDir, YDir, ZDir             {normal} | reverse

  2. 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.
  3. set(gca,'XDir','reverse')
  4. 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.
  5. set(gca,'YDir','reverse')
  6. 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.
  7. set(gca,'ZDir','reverse')
复制代码

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-6-17 14:01 , Processed in 0.102544 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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