The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



SetRange


Unit: SDL_rchart
Class: TSmithChart
Declaration: procedure SetRange (xLo, yLo, xHi, yHi: extended);

The method SetRange sets the extents of a chart at once and redraws it using the new scaling. The parameters xLo, yLo, xHi, and yHi specify the ranges of the x- and the y-axis (the real and imaginary part of the reflection coefficient). In case of invalid parameters SetRange is not executed at all (no exception is generated).

Hint: In order to set the ranges in a way that all graphics elements are visible, the method AutoRange can be used.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): schart



Last Update: 2012-Oct-20