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....


Unit: SDL_rchart
Class: TContourPlot
Declaration: property PivotResolution: integer;

The PivotResolution controls the resolution of the rectangular grid which is used to construct the contour plot. The PivotResolution may take values between 10 and 5000 and specifes the number of pivot sections times 5 along the longer axis of the plot. The number of pivot points along the shorter axis is adjusted in proportion.

The following figure shows the pivot points on top of a colored contour surface. The PivotResolution has been set to 100. Thus the x-axis (the longer axis) is divided into 20 sections (21 pivot points), the y-axis is divided into a number of sections which results in approximately quadratic pivot elements.

Hint 1: The resolution of the contour plot may be controlled either by the properties NumPivotsX and NumPivotsY or by the property PivotResolution. The difference between these two kinds of resolution settings is that NumPivotsX and NumPivotsY allow to control the number of pivot points exactly while the property PivotResolution automatically adjusts the number of pivot points along the x- and the y-axis such that the contour plot is divided into roughly square regions.

Hint 2: Please note that the time to calculate a contour plot is roughly proportional to the square of the PivotResolution. For example, changing the resolution from 10 to 500 approximately increases the calculation time by a factor of 2500 (but it also depends on the structure of the surface to be visualized).

Example: This method is used in the following example program (see for downloading the code): contplot

Last Update: 2023-Dec-13