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


  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


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
Location of a rectangle - graphics objects: The location of a rectangle is [x y w h], where x and y are the coordinates of the lower left point, here w is the width, and h is

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

Areacirc function: The areacirc function can be called from the Command Window as shown here, or from a script. Here is a script which will prompt the user for the radius of o

Editor/Debugger: The MATLAB has numerous useful functions for debugging, and debugging can also be completed through its editor, which is known as the Editor/Debugger. Typi

Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti

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

Illustration of Mode When there is more than one value with similar (highest) frequency, then the smaller value is mode. In the case below, as 3 and 8 appear twice in the vecto

Opening and Closing a File: The Files are opened with the fopen function. By the default, fopen function opens a file for reading. If the other mode is preferred, a permission

Example of Functions which return values: Calling this function prints the circumference, since there is no way to store the value, hence, it can be used in following computat

Sorting Strings: For the matrix of strings, the sort function works exactly as formerly for numbers. For illustration, >> words = char('Hi', 'Hello', 'Howdy', 'Goodbye', '