DPlot_example5.prg
In this example we demonstrate how to use the built-in function generator of DPlot. Using this function generator you can create functions of the form y=f(x) and several other functions like BESSELJ, BESSELY, ERF, NORMRAND etc. When using these functions you do not have to compute the function values by yourself, DPlot will do so for you instead. If you need the function values back inside your HTBasic program you can retrieve them from DPlot using FNDplot_getcurdat which is also demonstrated in this example.
Example screenshot:
DPlot_example5.prg – Retrieving data points from DPlot curves
This example creates six bessel functions of the first kind at several orders from 0 to 5 directly in DPlot and displays them on the HTBasic screen. It then retrieves the data points from curve 2 back from DPlot and stores it in an array called Curve1(*) for further use under HTBasic. You could now manipulate the data and send it back to DPlot or do whatever is useful in your application. The data will be displayed on the screen for further inspection.
Finally the example program saves the created DPlot document into several formats including GRF, WMF, EMF and PNG under "All Users\ Application data\GRAPH-XT\DPlot_example5.grf" using the function FNDPlot_doc_save.