[Matlab] Figure and axis options
Posted on Thursday, June 21, 2012, 4:38 AM
In Matlab, if you type get(gcf) of get(gca) you will get a list of the current properties of the given axis or figure. Also, set(gcf) or set(gca) will list all available properties and the legal options you can set. This is true for other objects also. I tend to use figures and axes regularly and forget these option and so I am listing them here.
set(gcf):
Alphamap
CloseRequestFcn: string -or- function handle -or- cell array
Color
Colormap
CurrentAxes
CurrentCharacter
CurrentObject
CurrentPoint
DockControls: [ {on} | off ]
FileName
IntegerHandle: [ {on} | off ]
InvertHardcopy: [ {on} | off ]
KeyPressFcn: string -or- function handle -or- cell array
KeyReleaseFcn: string -or- function handle -or- cell array
MenuBar: [ none | {figure} ]
Name
NextPlot: [ new | {add} | replace | replacechildren ]
NumberTitle: [ {on} | off ]
PaperUnits: [ {inches} | centimeters | normalized | points ]
PaperOrientation: [ {portrait} | landscape | rotated ]
PaperPosition
PaperPositionMode: [ auto | {manual} ]
PaperSize
PaperType: [ {usletter} | uslegal | A0 | A1 | A2 | A3 | A4 | A5 | B0 | B1 | B2 | B3 | B4 | B5 | arch-A | arch-B | arch-C | arch-D | arch-E | A | B | C | D | E | tabloid | <custom> ]
Pointer: [ crosshair | fullcrosshair | {arrow} | ibeam | watch | topl | topr | botl | botr | left | top | right | bottom | circle | cross | fleur | custom | hand ]
PointerShapeCData
PointerShapeHotSpot
Position
Renderer: [ {painters} | zbuffer | OpenGL | None ]
RendererMode: [ {auto} | manual ]
Resize: [ {on} | off ]
ResizeFcn: string -or- function handle -or- cell array
SelectionType: [ normal | open | alt | extend ]
ToolBar: [ none | {auto} | figure ]
Units: [ inches | centimeters | normalized | points | {pixels} | characters ]
WindowButtonDownFcn: string -or- function handle -or- cell array
WindowButtonMotionFcn: string -or- function handle -or- cell array
WindowButtonUpFcn: string -or- function handle -or- cell array
WindowKeyPressFcn: string -or- function handle -or- cell array
WindowKeyReleaseFcn: string -or- function handle -or- cell array
WindowScrollWheelFcn: string -or- function handle -or- cell array
WindowStyle: [ {normal} | modal | docked ]
WVisual: { 00 (RGB 32 GDI, Bitmap, Window) }
01 (RGB 32 bits(08 08 08 08) zdepth 0, Hardware Accelerated, Opengl, Window)
02 (RGB 32 bits(08 08 08 08) zdepth 0, Hardware Accelerated, Opengl, Double Buffered, Window)
03 (RGB 32 bits(08 08 08 08) zdepth 16, Hardware Accelerated, Opengl, Window)
04 (RGB 32 bits(08 08 08 08) zdepth 16, Hardware Accelerated, Opengl, Double Buffered, Window)
05 (RGB 32 bits(08 08 08 08) zdepth 24, Hardware Accelerated, Opengl, Window)
06 (RGB 32 bits(08 08 08 08) zdepth 24, Hardware Accelerated, Opengl, Double Buffered, Window)
07 (RGB 32 bits(08 08 08 00) zdepth 32, Generic, Opengl, GDI, Bitmap, Window)
08 (RGB 32 bits(08 08 08 00) zdepth 16, Generic, Opengl, GDI, Bitmap, Window)
09 (RGB 32 bits(08 08 08 00) zdepth 32, Generic, Opengl, Double Buffered, Window)
10 (RGB 32 bits(08 08 08 00) zdepth 16, Generic, Opengl, Double Buffered, Window)
11 (RGB 32 bits(08 08 08 08) zdepth 32, Generic, Opengl, GDI, Bitmap, Window)
12 (RGB 32 bits(08 08 08 08) zdepth 16, Generic, Opengl, GDI, Bitmap, Window)
13 (RGB 32 bits(08 08 08 08) zdepth 32, Generic, Opengl, Double Buffered, Window)
14 (RGB 32 bits(08 08 08 08) zdepth 16, Generic, Opengl, Double Buffered, Window)
WVisualMode: [ {auto} | manual ]
ButtonDownFcn: string -or- function handle -or- cell array
Children
Clipping: [ {on} | off ]
CreateFcn: string -or- function handle -or- cell array
DeleteFcn: string -or- function handle -or- cell array
BusyAction: [ {queue} | cancel ]
HandleVisibility: [ {on} | callback | off ]
HitTest: [ {on} | off ]
Interruptible: [ {on} | off ]
Parent
Selected: [ on | off ]
SelectionHighlight: [ {on} | off ]
Tag
UIContextMenu
UserData
Visible: [ {on} | off ]
CloseRequestFcn: string -or- function handle -or- cell array
Color
Colormap
CurrentAxes
CurrentCharacter
CurrentObject
CurrentPoint
DockControls: [ {on} | off ]
FileName
IntegerHandle: [ {on} | off ]
InvertHardcopy: [ {on} | off ]
KeyPressFcn: string -or- function handle -or- cell array
KeyReleaseFcn: string -or- function handle -or- cell array
MenuBar: [ none | {figure} ]
Name
NextPlot: [ new | {add} | replace | replacechildren ]
NumberTitle: [ {on} | off ]
PaperUnits: [ {inches} | centimeters | normalized | points ]
PaperOrientation: [ {portrait} | landscape | rotated ]
PaperPosition
PaperPositionMode: [ auto | {manual} ]
PaperSize
PaperType: [ {usletter} | uslegal | A0 | A1 | A2 | A3 | A4 | A5 | B0 | B1 | B2 | B3 | B4 | B5 | arch-A | arch-B | arch-C | arch-D | arch-E | A | B | C | D | E | tabloid | <custom> ]
Pointer: [ crosshair | fullcrosshair | {arrow} | ibeam | watch | topl | topr | botl | botr | left | top | right | bottom | circle | cross | fleur | custom | hand ]
PointerShapeCData
PointerShapeHotSpot
Position
Renderer: [ {painters} | zbuffer | OpenGL | None ]
RendererMode: [ {auto} | manual ]
Resize: [ {on} | off ]
ResizeFcn: string -or- function handle -or- cell array
SelectionType: [ normal | open | alt | extend ]
ToolBar: [ none | {auto} | figure ]
Units: [ inches | centimeters | normalized | points | {pixels} | characters ]
WindowButtonDownFcn: string -or- function handle -or- cell array
WindowButtonMotionFcn: string -or- function handle -or- cell array
WindowButtonUpFcn: string -or- function handle -or- cell array
WindowKeyPressFcn: string -or- function handle -or- cell array
WindowKeyReleaseFcn: string -or- function handle -or- cell array
WindowScrollWheelFcn: string -or- function handle -or- cell array
WindowStyle: [ {normal} | modal | docked ]
WVisual: { 00 (RGB 32 GDI, Bitmap, Window) }
01 (RGB 32 bits(08 08 08 08) zdepth 0, Hardware Accelerated, Opengl, Window)
02 (RGB 32 bits(08 08 08 08) zdepth 0, Hardware Accelerated, Opengl, Double Buffered, Window)
03 (RGB 32 bits(08 08 08 08) zdepth 16, Hardware Accelerated, Opengl, Window)
04 (RGB 32 bits(08 08 08 08) zdepth 16, Hardware Accelerated, Opengl, Double Buffered, Window)
05 (RGB 32 bits(08 08 08 08) zdepth 24, Hardware Accelerated, Opengl, Window)
06 (RGB 32 bits(08 08 08 08) zdepth 24, Hardware Accelerated, Opengl, Double Buffered, Window)
07 (RGB 32 bits(08 08 08 00) zdepth 32, Generic, Opengl, GDI, Bitmap, Window)
08 (RGB 32 bits(08 08 08 00) zdepth 16, Generic, Opengl, GDI, Bitmap, Window)
09 (RGB 32 bits(08 08 08 00) zdepth 32, Generic, Opengl, Double Buffered, Window)
10 (RGB 32 bits(08 08 08 00) zdepth 16, Generic, Opengl, Double Buffered, Window)
11 (RGB 32 bits(08 08 08 08) zdepth 32, Generic, Opengl, GDI, Bitmap, Window)
12 (RGB 32 bits(08 08 08 08) zdepth 16, Generic, Opengl, GDI, Bitmap, Window)
13 (RGB 32 bits(08 08 08 08) zdepth 32, Generic, Opengl, Double Buffered, Window)
14 (RGB 32 bits(08 08 08 08) zdepth 16, Generic, Opengl, Double Buffered, Window)
WVisualMode: [ {auto} | manual ]
ButtonDownFcn: string -or- function handle -or- cell array
Children
Clipping: [ {on} | off ]
CreateFcn: string -or- function handle -or- cell array
DeleteFcn: string -or- function handle -or- cell array
BusyAction: [ {queue} | cancel ]
HandleVisibility: [ {on} | callback | off ]
HitTest: [ {on} | off ]
Interruptible: [ {on} | off ]
Parent
Selected: [ on | off ]
SelectionHighlight: [ {on} | off ]
Tag
UIContextMenu
UserData
Visible: [ {on} | off ]
--------------------------------------------------------------------------------------------------------
set(gca):
ALim
ALimMode: [ {auto} | manual ]
AmbientLightColor
Box: [ on | {off} ]
CameraPosition
CameraPositionMode: [ {auto} | manual ]
CameraTarget
CameraTargetMode: [ {auto} | manual ]
CameraUpVector
CameraUpVectorMode: [ {auto} | manual ]
CameraViewAngle
CameraViewAngleMode: [ {auto} | manual ]
CLim
CLimMode: [ {auto} | manual ]
Color
ColorOrder
DataAspectRatio
DataAspectRatioMode: [ {auto} | manual ]
DrawMode: [ {normal} | fast ]
FontAngle: [ {normal} | italic | oblique ]
FontName
FontSize
FontUnits: [ inches | centimeters | normalized | {points} | pixels ]
FontWeight: [ light | {normal} | demi | bold ]
GridLineStyle: [ - | -- | {:} | -. | none ]
Layer: [ top | {bottom} ]
LineStyleOrder
LineWidth
MinorGridLineStyle: [ - | -- | {:} | -. | none ]
NextPlot: [ new | add | {replace} | replacechildren ]
OuterPosition
PlotBoxAspectRatio
PlotBoxAspectRatioMode: [ {auto} | manual ]
Projection: [ {orthographic} | perspective ]
Position
TickLength
TickDir: [ {in} | out ]
TickDirMode: [ {auto} | manual ]
Title
Units: [ inches | centimeters | {normalized} | points | pixels | characters ]
View
XColor
XDir: [ {normal} | reverse ]
XGrid: [ on | {off} ]
XLabel
XAxisLocation: [ top | {bottom} ]
XLim
XLimMode: [ {auto} | manual ]
XMinorGrid: [ on | {off} ]
XMinorTick: [ on | {off} ]
XScale: [ {linear} | log ]
XTick
XTickLabel
XTickLabelMode: [ {auto} | manual ]
XTickMode: [ {auto} | manual ]
YColor
YDir: [ {normal} | reverse ]
YGrid: [ on | {off} ]
YLabel
YAxisLocation: [ {left} | right ]
YLim
YLimMode: [ {auto} | manual ]
YMinorGrid: [ on | {off} ]
YMinorTick: [ on | {off} ]
YScale: [ {linear} | log ]
YTick
YTickLabel
YTickLabelMode: [ {auto} | manual ]
YTickMode: [ {auto} | manual ]
ZColor
ZDir: [ {normal} | reverse ]
ZGrid: [ on | {off} ]
ZLabel
ZLim
ZLimMode: [ {auto} | manual ]
ZMinorGrid: [ on | {off} ]
ZMinorTick: [ on | {off} ]
ZScale: [ {linear} | log ]
ZTick
ZTickLabel
ZTickLabelMode: [ {auto} | manual ]
ZTickMode: [ {auto} | manual ]
ButtonDownFcn: string -or- function handle -or- cell array
Children
Clipping: [ {on} | off ]
CreateFcn: string -or- function handle -or- cell array
DeleteFcn: string -or- function handle -or- cell array
BusyAction: [ {queue} | cancel ]
HandleVisibility: [ {on} | callback | off ]
HitTest: [ {on} | off ]
Interruptible: [ {on} | off ]
Parent
Selected: [ on | off ]
SelectionHighlight: [ {on} | off ]
Tag
UIContextMenu
UserData
Visible: [ {on} | off ]
Subscribe to:
Post Comments (Atom)
No Response to "[Matlab] Figure and axis options"
Leave A Reply