Properties of the text box - graphics objects, MATLAB in Statistics

Properties of the text box - graphics objects:

By using get will show properties of the text box, the illustration is as shown below:

>> get(thand)

  BackgroundColor = none

  Color = [0 0 0]

  EdgeColor = none

  EraseMode = normal

  Editing = off

  Extent = [1.95862 -0.0670554 0.901149

   0.110787]

  FontAngle = normal

  FontName = Helvetica

  FontSize = [10]

FontUnits = points

  FontWeight = normal

  HorizontalAlignment = left

  LineStyle = -

  LineWidth = [0.5]

  Margin = [2]

  Position = [2 0 0]

  Rotation = [0]

  String = Sin(\pi)\rightarrow

  Units = data

  Interpreter = tex

  VerticalAlignment = middle

   etc.

1574_Properties of the text box.png

However the Position specified was (2,0), the Extent is the real extent of the text box, that cannot be seen asthe BackgroundColor and EdgeColor are not identified. These can be changed by using set. For illustration, the following produces the outcome as shown in figure:

>> set(thand,'BackgroundColor',[0.8 0.8 0.8],. . .

  'EdgeColor',[1 0 0])

Whenever the Units property has the value of data, that is the default as shown, the Extent of the text box is given by a vector [x y width height] where x and y are the coordinates of the bottom left-hand corner of the text box.

Posted Date: 10/22/2012 8:19:32 AM | Location : United States







Related Discussions:- Properties of the text box - graphics objects, Assignment Help, Ask Question on Properties of the text box - graphics objects, Get Answer, Expert's Help, Properties of the text box - graphics objects Discussions

Write discussion on Properties of the text box - graphics objects
Your posts are moderated
Related Questions
function sortrows - sorting strings: The function sortrows sorts each and every row as a block, or group, and it also will work on numbers. Here in this illustration the rows

Run-time or execution-time error: The Run-time, or execution-time, errors are found whenever a script or function is executing. With most of the languages, an illustration of

The IF Statement: The if statement selects whether or not the other statement, or group of statements, is executed. The common form of the if statement is as shown below: i

Graphics objects: The objects involve graphics primitives like lines and text, and also the axes used to orient the objects. These objects are organized hierarchically, and the

Logical errors: The Logical errors are more complicated to locate, as they do not result in any error message. The logical error is a mistake in reasoning by the programmer, b

Logical Built-In Functions: There are built-in functions in the MATLAB which are useful in conjunction with vectors or matrices of all logical true or false values; two of the

fopen function - file function: The fopen opens the file for reading. The fscanf then reads each line one double and one character, and put each pair in individual columns in

Tracing: Sometimes, when a program has loops and/or selection statements and is not running properly, it is helpful in the debugging process to know exactly which statements h

Vectors of nested structures: The Combining vectors and nested structures are possible to have a vector of structures in which several fields are structures themselves. Here i

Index vector: The index vector is then used as the indices for original vector. To get grades vector in ascending order, the indices used would be grades (2), grades (5), and