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



DrawPlot


Unit: SDL_rchart
Class: TContourPlot
Declaration: procedure DrawPlot;

The method DrawPlot triggers the (re)painting of the contour plot and ensures that the entire contour plot is recalculated. DrawPlot has to be called after changing the data to be displayed, otherwise the new data will not be shown.

Hint 1: Please note that in order to display any contour plot the OnEstimateZVal event has to be assigned and the property SuppressPaint has to be set to FALSE.

Hint 2: If the contour plot has already been plotted before and you need only to update the user drawn elements (using the OnDataRendered event) it is substantially faster to call the inherited Repaint method (the Repaint method does not recreate the plot from scratch but uses internal buffers if these buffers already contain valid contour plots).

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



Last Update: 2014-Sep-14