Plot: 2D: Pareto: Pareto Chart - Binned Data
Create Pareto plot from binned data
1. plot_paretobin -r 1 datarng:=1!A"Data" countrng:=1!B"Count";
2. plot_paretobin datarng:=1!A countrng:=1!B combine:=1 threshold:=10;
Please refer to the page for additional option switches when accessing the x-function from script
Input
Range
int
double
By Percent: Accessible only when By Percent is chosen in Threshold. The data of which the count's percentage is smaller than this value will be combined as one category in the plot.
By Count: Accessible only when By Count is chosen in Threshold. The data of which the count number is smaller than this value will be combined as one category in the plot.
By Bar Number: Accessible only when By Bar Number is chosen in Threshold. The created Pareto chart will have n bars specified in this edit box. The data of which the bin order is greater than n-1 will be combined as one category in the plot.
string
Output
ReportData
This X-Function is used to plot the Pareto chart from binned data. Please refer to this page to see how to creat a Pareto chart.
Note: in Origin 2017 or ealier versions, this X-Function cannot be accessed by LabTalk script. To plot Pareto chart from script, you will need to use
worksheet -px
For example, the following script plot column C in sheet1, book1 into a Pareto plot, with Recalculate Mode = Auto.
worksheet -px ? ParetoBin plot_paretobin datarng:=1!1 countrng:=1!2 -r 2;
plot_paretoraw
Keywords:cumulative total