如何使坐标轴以大数开始,以小数结束?
请问如何在MATLAB中,使得让坐标轴以大数开始,以小数结束。比如Z周上面为0,下面为10%%%%%%%%%%%%%%%%%%%%%%%%%%%%
这种问题已经讨论过多次,建议发贴前先搜索论坛.
by xjzuo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[ 本帖最后由 xjzuo 于 2007-1-31 18:35 编辑 ] 图形截面编辑中可以顺向(由小到大),也可以逆向(由大到小)。选择逆向即可!(Matlab7.0) 原帖由 heaventian 于 2007-1-30 22:59 发表
请问如何在MATLAB中,使得让坐标轴以大数开始,以小数结束。比如Z周上面为0,下面为10
楼上的提示是界面实现,下面是程序实现的介绍:
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')
页:
[1]