| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 4257 人关注过本帖
标题:怎样获得坐标轴axis 的最大值(xmax)和最小值(xmin)?
只看楼主 加入收藏
whf03013215
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-19
收藏
 问题点数:0 回复次数:3 
怎样获得坐标轴axis 的最大值(xmax)和最小值(xmin)?

我编了个程序,想把坐标轴的最大和最小值作为slider的最大和最小值,请问怎么才能获得坐标轴的 xmin,xmax,ymin,ymax;我编了几句 :
handles.axis_xmin=get(handles.axes1,'xmin');
handles.axis_xmax=get(handles.axes1,'xmax');
运行有错误。谁给我指点下,先谢了。

搜索更多相关主题的帖子: axis 最大值 xmax xmin 坐标轴 
2007-05-20 20:11
coolhpas
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2007-4-8
收藏
得分:0 
坐标轴的最大值与最小值可以自己设定: XLIM([XMIN XMAX]) YLIM([YMIN YMAX])
然后直接用这些值不可以么?
2007-05-22 11:36
coolhpas
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2007-4-8
收藏
得分:0 
回复:(whf03013215)怎样获得坐标轴axis 的最大值(x...

axesH=axes;
get(axesH)
ActivePositionProperty = outerposition
ALim = [0 1]
ALimMode = auto
AmbientLightColor = [1 1 1]
Box = off
CameraPosition = [0.5 0.5 9.16025]
CameraPositionMode = auto
CameraTarget = [0.5 0.5 0.5]
CameraTargetMode = auto
CameraUpVector = [0 1 0]
CameraUpVectorMode = auto
CameraViewAngle = [6.60861]
CameraViewAngleMode = auto
CLim = [0 1]
CLimMode = auto
Color = [1 1 1]
CurrentPoint = [ (2 by 3) double array]
ColorOrder = [ (7 by 3) double array]
DataAspectRatio = [1 1 1]
DataAspectRatioMode = auto
DrawMode = normal
FontAngle = normal
FontName = Helvetica
FontSize = [10]
FontUnits = points
FontWeight = normal
GridLineStyle = :
Layer = bottom
LineStyleOrder = -
LineWidth = [0.5]
MinorGridLineStyle = :
NextPlot = replace
OuterPosition = [0 0 1 1]
PlotBoxAspectRatio = [1 1 1]
PlotBoxAspectRatioMode = auto
Projection = orthographic
Position = [0.13 0.11 0.775 0.815]
TickLength = [0.01 0.025]
TickDir = in
TickDirMode = auto
TightInset = [0.0392857 0.0404762 0.00892857 0.0190476]
Title = [153.002]
Units = normalized
View = [0 90]
XColor = [0 0 0]
XDir = normal
XGrid = off
XLabel = [154.001]
XAxisLocation = bottom
XLim = [0 1]
XLimMode = auto
XMinorGrid = off
XMinorTick = off
XScale = linear
XTick = [ (1 by 11) double array]
XTickLabel = [ (11 by 3) char array]
XTickLabelMode = auto
XTickMode = auto
YColor = [0 0 0]
YDir = normal
YGrid = off
YLabel = [155.001]
YAxisLocation = left
YLim = [0 1]
YLimMode = auto
YMinorGrid = off
YMinorTick = off
YScale = linear
YTick = [ (1 by 11) double array]
YTickLabel = [ (11 by 3) char array]
YTickLabelMode = auto
YTickMode = auto
ZColor = [0 0 0]
ZDir = normal
ZGrid = off
ZLabel = [156.001]
ZLim = [0 1]
ZLimMode = auto
ZMinorGrid = off
ZMinorTick = off
ZScale = linear
ZTick = [0 0.5 1]
ZTickLabel =
ZTickLabelMode = auto
ZTickMode = auto

BeingDeleted = off
ButtonDownFcn =
Children = []
Clipping = on
CreateFcn =
DeleteFcn =
BusyAction = queue
HandleVisibility = on
HitTest = on
Interruptible = on
Parent = [1]
Selected = off
SelectionHighlight = on
Tag =
Type = axes
UIContextMenu = []
UserData = []
Visible = on

属性中并无xmin 
首先应先获取xlim,再取xmin 和xmax

2007-05-22 11:43
whf03013215
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-19
收藏
得分:0 

好长的程序,看不太懂啊。能给我简单点说不?

2007-05-22 16:50
快速回复:怎样获得坐标轴axis 的最大值(xmax)和最小值(xmin)?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.028734 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved