Plot: Contour: 2D Kernel Density
Create a 2D Kernel Density plot
Minimum Origin Version Required: 2015 SR0
1. plot_kde2 -r 1 iy:=[Book1BA]Sheet1!(A"House For Sale",B"Regular Conventional Retail Gasoline Prices");
2. plot_kde2 iy:=[Book1BA]Sheet1!(A,B) points:=28;
3. plot_kde2 method:=thumb points:=286 plot:=image;
Please refer to the page for additional option switches when accessing the x-function from script
Input
Range
Int
Option List:
int
double
Output
Matrix Object
ReportData
For detailed information about this X-Function, please refer to our User Guide 2D Kernel Density Plot
Note: in Origin 2017 or ealier versions, this X-Function is not accessible from LabTalk script. To create 2D Kernel Density plot from script, you will need to use
worksheet -px
For example,
worksheet -px ? kdCONTOUR plot_kde2 iy:=[Book1]Sheet1!(A,B) xmin:=35 xmax:=680;