Graphics properties, MATLAB in Engineering

Graphics Properties:

The MATLAB uses the Handle Graphics in all its figures. All figures consist of various objects, each of which is assigned a handle. The object handle is a exclusive real number which is used to refer to the object.

The different plot functions return a handle for the plot object that can then be stored in a variable. The plot function plots a sin function as shown below in a Figure Window and returns a real number that is the object handle. This handle will remain valid as long as the object exists.

1001_Graphics Properties.png

  >> x = -2*pi: 1/5 : 2*pi;

     >> y = sin(x);

     >> hl = plot(x,y)

     hl =

    158.5420

Note that after getting the plot, the Figure Window must not be closed, so that it would make the object handle invalid as the object wouldn't exist anymore! The properties of that object can be exhibited using the get function. This displays properties like the LineStyle, Color, LineWidth, and so forth.

 

>> get(hl)

     Color:  [0 0 1]

   EraseMode:  'normal'

  LineStyle:  '-'

   LineWidth:  0.5000

   Marker:  'none'

   MarkerSize:  6

  MarkerEdgeColor:  'auto'

   MarkerFaceColor:  'none'

   XData:  [1x63 double]

   YData:  [1x63 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:  157.5415

   DisplayName:  ''

    XDataMode:  'manual'

  XDataSource:  ''

  YDataSource:  ''

   ZDataSource:  ''

Posted Date: 10/22/2012 2:05:01 AM | Location : United States







Related Discussions:- Graphics properties, Assignment Help, Ask Question on Graphics properties, Get Answer, Expert's Help, Graphics properties Discussions

Write discussion on Graphics properties
Your posts are moderated
Related Questions
Image Processing: The Images are represented as grids, or matrices, of picture elements (known as pixels). In MATLAB an image usually is represented as a matrix in which each

Illustration of Image processing: This displays that there are 64 rows, or in another word, 64 colors, in this specific colormap. It also displays that the first five colors a

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Illustration of Sorting strings: To sort on the rows rather than second dimension should be specified. >> sort(words,2) ans = Hello Hdowy Hi Gbdeo

Illustration of gauss-jordan elimination: An illustration of interchanging rows would be r1 ¬→ r3, that would results: Now, beginning with this matrix, an illustration of sc

Calling of Function polyval: The curve does not appear very smooth on this plot, but that is as there are only five points in the x vector. To estimate the temperature

Preallocating a Vector: There are necessarily two programming techniques that can be used to simulate the cumsum function. One technique is to begin with an empty vector and c

Graphics Properties: The MATLAB uses the Handle Graphics in all its figures. All figures consist of various objects, each of which is assigned a handle. The object handle is a

I have a 400x2 vel.dat and 20x2 xy.dat file, how can i plot a streamslice graph on matlab with this two files.