Navigation:  Getting Started > Getting Started with XYZ Scatter Plots >

Getting Started with XYZ Scatter Plots - Data Generated by an Equation

Print this Topic Previous pageReturn to chapter overviewNext page

If you are not already working with an existing 3D scatter plot, first select New>3D Scatter on the File menu.

Use the Z=f(X,Y) command on the Generate menu to generate Z values that are a function of X and Y. Unlike 3D surface plots, you may use this command multiple times to produce multiple data sets in the same 3D scatter plot.

All of the function-parsing routines in DPlot have the same basic syntax, capabilities and limitations:

Available two-side-operators are +, -, *, /, ^. Available one-side operators: sin, cos, tan, asin, acos, atan, abs(absolute value), sqrt(square root), log, logh(or log10), exp (inverse natural logarithm), cosh, sinh, tanh, rnd(random integer; argument is highest number that can be the output), fact(factorial), erf(error function), and cdf(cumulative distribution function). A complete list of available functions is shown here. These all take an argument that must be in parentheses.

By default, angular input values are in radians. You can set angles to degrees by clicking the degrees option button.

DPlot will automatically substitute "PI", "pi", or "Pi" in the function with "4*atan(1.0)"

NOTE: Be specific. DPlot does not interpret "2X" as "2*X".

Prevent divide by zero errors
If this box is unchecked, DPlot will trap divide by zero and many other math errors (e.g. logarithm of a non-positive value), report the value of x  or y where the error occurred, and will not generate a data set. If this box is checked, when DPlot traps a math error it will shift x or y by a very small number and attempt the calculation again. This feature might be useful for generating curves of certain functions that would normally fail at specific values of x or y, e.g. sin(x)/x at x=0.

 

 


Page url: https://www.dplot.com/help/index.htm?helpid_gs_xyzscatter_eqn.htm