get 获得某对象属性
set 设置某对象属性
findobj 寻找符合属性要求的对象
allchild 寻找某一对象的子对象
常用的图形对象:
Figure
Axes
Line
Text
Uicontrol
所有属性 :
Alphamap = [ (1 by 64) double array]
CloseRequestFcn = closereq %关闭窗体
Color = [0.8 0.8 0.8] %窗体颜色
Colormap = [ (64 by 3) double array]
CurrentAxes = [] %坐标子对象
CurrentCharacter = %当前按下的字符
CurrentObject = [] %CurrentAxes 中的对象
CurrentPoint = [0 0] %鼠标位置
DockControls = on
FileName =
IntegerHandle = on
InvertHardcopy = on
KeyPressFcn =
KeyReleaseFcn =
MenuBar = figure %默认的菜单属性 none 取消任何菜单
Name = %更改窗体名字
NextPlot = add %叠加图像
NumberTitle = on %开关 窗体名字
PaperUnits = centimeters
PaperOrientation = portrait
PaperPosition = [0.634517 6.34517 20.3046 15.2284]
PaperPositionMode = manual
PaperSize = [20.984 29.6774]
PaperType = A4
Pointer = arrow
PointerShapeCData = [ (16 by 16) double array]
PointerShapeHotSpot = [1 1]
Position = [560 528 560 420] %Units为pixels时为整数 为归一化时,用01间小数
Renderer = None
RendererMode = auto
Resize = on %是否可以改变窗体大小
ResizeFcn =
SelectionType = normal
ToolBar = auto
Units = pixels %窗体单位:1、像素 2、归一化单位 Normalized
WindowButtonDownFcn = %鼠标按下时 所执行的回调函数 如closereq
WindowButtonMotionFcn = %键盘按下时 所执行的回调函数 如closereq
WindowButtonUpFcn =
WindowKeyPressFcn =
WindowKeyReleaseFcn =
WindowScrollWheelFcn = %滚动滑轮
WindowStyle = normal
WVisual = 00 (RGB 32 GDI, Bitmap, Window)
WVisualMode = auto
BeingDeleted = off
ButtonDownFcn =
Children = []
Clipping = on
CreateFcn =
DeleteFcn =
BusyAction = queue
HandleVisibility = on
HitTest = on
Interruptible = on
Parent = [0]
Selected = off
SelectionHighlight = on
Tag =
Type = figure
UIContextMenu = []
UserData = []
Visible = on
axes 坐标轴对象属性
GUI_button_shuxing
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 % 几个图形的关系 覆盖 ADD叠加
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 = [176.204]
Units = normalized%单位默认归一化
View = [0 90]
XColor = [0 0 0]
XDir = normal
XGrid = off
XLabel = [177.2]
XAxisLocation = bottom%x坐标在上面 还是下面
XLim = [0 1] %坐标轴X的范围
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 = [178.2]
YAxisLocation = left %y坐标在上面 还是下面
YLim = [0 1] %坐标轴Y的范围
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 = [179.205]
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
line 对象 属性
GUI_button_shuxing
DisplayName: ''
Annotation: [1x1 hg.Annotation]
Color: [0 0 1]
LineStyle: '-'
LineWidth: 0.5000
Marker: 'none'
MarkerSize: 6 %标记尺寸大小
MarkerEdgeColor: 'auto' %线型的边缘颜色
MarkerFaceColor: 'none' %线型的填充颜色
XData: [1x101 double] %XYZ 是3个核心的数据对象
YData: [1x101 double]
ZData: [1x0 double]
BeingDeleted: 'off'
ButtonDownFcn: []
Children: [0x1 double]
Clipping: 'on'
CreateFcn: []
DeleteFcn: []
BusyAction: 'queue'
HandleVisibility: 'on'
HitTest: 'on'
Interruptible: 'on'
Selected: 'off'
SelectionHighlight: 'on'
Tag: ''
Type: 'line'
UIContextMenu: []
UserData: []
Visible: 'on'
Parent: 175.2024
XDataMode: 'auto'
XDataSource: ''
YDataSource: ''
ZDataSource: ''
绘图
ezplot 可以绘制隐函数所得到的曲线
GUI06
Annotation = [ (1 by 1) hg.Annotation array]
BackgroundColor = none
Color = [0 0 0]
DisplayName =
EdgeColor = none
Editing = off
Extent = [0.995402 0.96793 0.0781609 0.0524781]
FontAngle = normal
FontName = Helvetica
FontSize = [10]
FontUnits = points
FontWeight = normal
HorizontalAlignment = left
LineStyle = -
LineWidth = [0.5]
Margin = [2]
Position = [1 1 0]
Rotation = [0]
String = 示例 %具体字体
Units = data
Interpreter = tex %显示公式的时候 默认的是 tex翻译方式
VerticalAlignment = middle
BeingDeleted = off
ButtonDownFcn =
Children = []
Clipping = off
CreateFcn =
DeleteFcn =
BusyAction = queue
HandleVisibility = on
HitTest = on
Interruptible = on
Parent = [1.2085]
Selected = off
SelectionHighlight = on
Tag =
Type = text
UIContextMenu = []
UserData = []
Visible = on