MATLAB Function Reference (Volume 2: Graphics)
MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)
LineSpecColor SpecifiersSpecifierrgbcmykwColorredgreenbluecyanmagentayellowblackwhiteMany plotting commands accept a LineSpec argument that defines threecomponents used to specify lines:• Line style• Marker symbol• ColorFor example,plot(x,y,'−.or')plots y versus x using a dash-dot line (−.), places circular markers (o) at thedata points, and colors both line and marker red (r). Specify the components (inany order) as a quoted string after the data arguments.If you specify a marker, but not a line style, MATLAB plots only the markers.For example,plot(x,y,'d')RelatedPropertiesWhen using the plot and plot3 functions, you can also specify othercharacteristics of lines using graphics properties:2-288
LineSpec• LineWidth – specifies the width (in points) of the line• MarkerEdgeColor – specifies the color of the marker or the edge color forfilledmarkers (circle, square, diamond, pentagram, hexagram, and the fourtriangles).• MarkerFaceColor – specifies the color of the face of filled markers.• MarkerSize – specifies the size of the marker in points.In addition, you can specify the LineStyle, Color, and Marker propertiesinstead of using the symbol string. This is useful if you want to specify a colorthat is not in the list by using RGB values. See ColorSpec for more informationon color.2-289
- Page 267 and 268: Image Propertiesproduces:0.511.522.
- Page 269 and 270: Image Properties• xor - Draw and
- Page 271 and 272: Image Propertiesdefine the ButtonDo
- Page 273 and 274: imagescPurpose2imagescScale data an
- Page 275 and 276: imagescSee Alsoimage, colorbar2-245
- Page 277 and 278: inputdlgPurpose2inputdlgCreate inpu
- Page 279 and 280: ishandlePurpose2ishandleDetermines
- Page 281 and 282: isocapsPurpose2isocapsCompute isosu
- Page 283 and 284: isonormalsPurpose2isonormalsCompute
- Page 285 and 286: isosurfacePurpose2isosurfaceExtract
- Page 287 and 288: isosurfaceSee Alsoisonormals, isoca
- Page 289 and 290: legendlegend_handle = legend return
- 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: LineSpecLine Style SpecifiersSpecif
- 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 and 342: pagedlgPurpose2pagedlgDisplay page
- Page 343 and 344: patchPurpose2patchCreate patch grap
- 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
LineSpec• LineWidth – specifies the width (in points) of the line• MarkerEdgeColor – specifies the color of the marker or the edge color forfilledmarkers (circle, square, diamond, pentagram, hexagram, and the fourtriangles).• MarkerFaceColor – specifies the color of the face of filled markers.• MarkerSize – specifies the size of the marker in points.In addition, you can specify the LineStyle, Color, and Marker propertiesinstead of using the symbol string. This is useful if you want to specify a colorthat is not in the list by using RGB values. See ColorSpec for more informationon color.2-289