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
Example of Core objects: The one core graphics object is a line that is also what the plot function produces. Here is an illustration of generating a line object, altering som

MENU Function: The MATLAB also has a built-in function known as menu which will display a figure Window with push buttons for the choices. The very first string passed to the

Example of Nested functions: For illustration, the function below computes and returns the volume of a cube. Three arguments are then passed to it, for the width and length of

Input in a While Loop: The script below repeats the procedure of prompting a user, the reading in a positive number, and echo-printing it, as long as the user properly enters

Vectorizing: In most of the cases in MATLAB, loops are not essential. As MATLAB is written specifically to work with the vectors and matrices, most operations can be completed

Example of customizing plots: As the other illustration of customizing plots, the pieces of a pie chart can be "exploded" from the rest. In this situation, the two vectors are

Data structure layers: There are many layers in this variable. For illustration,  cyls is the whole data structure, that is a vector of structs  cyls(1) is a separate

Function polyval - interpolation: The function polyval can then be used to compute the polynomial at particular values. For illustration, we could compute at every value in th

Functions which complete a task without returning Values: Most of the functions do not compute values, but instead of accomplish a task like printing formatted output. As thes

Curve Fitting: The data is fundamentally either discrete or continuous. In most of the applications, data is sampled, for illustration, The temperature recorded every ho