MATLAB Function Reference (Volume 2: Graphics)
MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)
paretoPurpose2paretoPareto chartSyntaxDescriptionSee Alsopareto(Y)pareto(Y,names)pareto(Y,X)H = pareto(...)Pareto charts display the values in the vector Y as bars drawn in descendingorder.pareto(Y) labels each bar with its element index in Y.pareto(Y,names) labels each bar with the associated name in the string matrixor cell array names.pareto(Y,X) labels each bar with the associated value from X.H = pareto(...) returns a combination of patch and line object handles.hist, bar2-312
patchPurpose2patchCreate patch graphics objectSyntaxDescriptionpatch(X,Y,C)patch(X,Y,Z,C)patch(...'PropertyName',PropertyValue...)patch('PropertyName',PropertyValue...) PN/PV pairs onlyhandle = patch(...)patch is the low-level graphics function for creating patch graphics objects. Apatch object is one or more polygons defined by the coordinates of its vertices.You can specify the coloring and lighting of the patch. See the “3-D Modeling”topic in Using MATLAB Graphics for more information on patches.patch(X,Y,C) adds the filled two-dimensional patch to the current axes. Theelements of X and Y specify the vertices of a polygon. If X and Y are matrices,MATLAB draws one polygon per column. C determines the color of the patch.It can be a single ColorSpec, one color per face, or one color per vertex (see“Remarks”). If C is a 1-by-3 vector, it is assumed to be an RGB triplet,specifying a color directly.patch(X,Y,Z,C) creates a patch in three-dimensional coordinates.patch(...'PropertyName',PropertyValue...) follows the X, Y, (Z), and Carguments with property name/property value pairs to specify additional patchproperties.patch('PropertyName',PropertyValue,...) specifies all properties usingproperty name/property value pairs. This form enables you to omit the colorspecification because MATLAB uses the default face color and edge color,unless you explicitly assign a value to the FaceColor and EdgeColorproperties. This form also allows you to specify the patch using the Faces andVertices properties instead of x-, y-, and z-coordinates. See the “Examples”section for more information.handle = patch(...) returns the handle of the patch object it creates.RemarksUnlike high-level area creation functions, such as fill or area, patch does notcheck the settings of the figure and axes NextPlot properties. It simply adds thepatch object to the current axes.2-313
- Page 291 and 292: lightPurpose2lightCreate a light ob
- Page 293 and 294: lightProperty Name Property Descrip
- Page 295 and 296: Light PropertiesLightProperties2Lig
- Page 297 and 298: Light PropertiesWhen a handle’s v
- Page 299 and 300: lightanglePurpose2lightangleCreate
- Page 301 and 302: linePurpose2lineCreate line objectS
- Page 303 and 304: lineFinally, pop the first line to
- Page 305 and 306: lineProperty Name Property Descript
- Page 307 and 308: lineProperty Name Property Descript
- Page 309 and 310: Line PropertiesCreateFcnstringCallb
- Page 311 and 312: Line PropertiesSetting HandleVisibi
- Page 313 and 314: Line PropertiesMarker Specifierphno
- Page 315 and 316: Line PropertiesZDatavector of coord
- Page 317 and 318: LineSpecLine Style SpecifiersSpecif
- Page 319 and 320: LineSpec• LineWidth - specifies t
- Page 321 and 322: LineSpec10.80.60.40.20−0.2−0.4
- Page 323 and 324: listdlgExampleThis example displays
- Page 325 and 326: loglogExamplesCreate a simple loglo
- Page 327 and 328: materialproperties of all surface a
- Page 329 and 330: mesh, meshc, meshzwireframe with hi
- Page 331 and 332: mesh, meshc, meshzmeshc calls mesh,
- Page 333 and 334: movieExamples Animate the peaks fun
- Page 335 and 336: msgboxPurpose2msgboxDisplay message
- Page 337 and 338: newplotNextPlotreplaceWhat HappensR
- Page 339 and 340: orientPurpose2orientSet paper orien
- Page 341: pagedlgPurpose2pagedlgDisplay page
- Page 345 and 346: patchColor Data InterpretationYou c
- Page 347 and 348: patch2V2 V31.91.8V51.71.61.51.41.31
- Page 349 and 350: patchRootFigureAxesUicontrolUimenuU
- Page 351 and 352: patchProperty Name Property Descrip
- Page 353 and 354: patchProperty Name Property Descrip
- Page 355 and 356: Patch PropertiesButtonDownFcn strin
- Page 357 and 358: Patch PropertiesThe second diagram
- Page 359 and 360: Patch PropertiesYou can also set th
- Page 361 and 362: Patch PropertiesFaceColor{ColorSpec
- Page 363 and 364: Patch Properties• An n-by-1 matri
- Page 365 and 366: Patch Propertiesprotect GUIs from c
- Page 367 and 368: Patch PropertiesMarker Specifierd^v
- Page 369 and 370: Patch PropertiesYou can also set th
- Page 371 and 372: pbaspectPurpose2pbaspectSet or quer
- Page 373 and 374: pbaspectIt is also interesting to l
- Page 375 and 376: pbaspect0.50−0.520−2−2020.50
- Page 377 and 378: pcolorExamplesA Hadamard matrix has
- Page 379 and 380: peaksPurpose2peaksA sample function
- Page 381 and 382: pieExamplesEmphasize the second sli
- Page 383 and 384: plotPurpose2plotLinear 2-D plotSynt
- Page 385 and 386: plotproduce this graph.3210−1−2
- Page 387 and 388: plot1Plot of sin(Θ)0.80.60.40.2sin
- Page 389 and 390: plot33530252015105010.510−0.5−1
- Page 391 and 392: plotmatrix50−51050−51050−5−
patchPurpose2patchCreate patch graphics objectSyntaxDescriptionpatch(X,Y,C)patch(X,Y,Z,C)patch(...'PropertyName',PropertyValue...)patch('PropertyName',PropertyValue...) PN/PV pairs onlyhandle = patch(...)patch is the low-level graphics function for creating patch graphics objects. Apatch object is one or more polygons defined by the coordinates of its vertices.You can specify the coloring and lighting of the patch. See the “3-D Modeling”topic in Using <strong>MATLAB</strong> <strong>Graphics</strong> for more information on patches.patch(X,Y,C) adds the filled two-dimensional patch to the current axes. Theelements of X and Y specify the vertices of a polygon. If X and Y are matrices,<strong>MATLAB</strong> draws one polygon per column. C determines the color of the patch.It can be a single ColorSpec, one color per face, or one color per vertex (see“Remarks”). If C is a 1-by-3 vector, it is assumed to be an RGB triplet,specifying a color directly.patch(X,Y,Z,C) creates a patch in three-dimensional coordinates.patch(...'PropertyName',PropertyValue...) follows the X, Y, (Z), and Carguments with property name/property value pairs to specify additional patchproperties.patch('PropertyName',PropertyValue,...) specifies all properties usingproperty name/property value pairs. This form enables you to omit the colorspecification because <strong>MATLAB</strong> uses the default face color and edge color,unless you explicitly assign a value to the FaceColor and EdgeColorproperties. This form also allows you to specify the patch using the Faces andVertices properties instead of x-, y-, and z-coordinates. See the “Examples”section for more information.handle = patch(...) returns the handle of the patch object it creates.RemarksUnlike high-level area creation functions, such as fill or area, patch does notcheck the settings of the figure and axes NextPlot properties. It simply adds thepatch object to the current axes.2-313