DistanceLabel:

Path: Common/Graphics

% Rescales distances and produce labels
 Generates a distance label given the maximum value of d and rescales d.
--------------------------------------------------------------------------
   Form:
   DistanceLabel;   % demo
   DistanceLabel( d );  % display at command line
   [d, c, u, f] = DistanceLabel( d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d	(1,:)   Distance (m)

   -------
   Outputs
   -------
   d	(1,:)   Distance ()
   c	 ''     Label (mm, cm, m, km, au, light year)
   u	 ''     Units of distance
   f (1,1)   Distance scale factor, d = d0/f

--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D

Back to the Common Module page