[proFit-list] How can we disconnect two data points?
pro Fit Support
profit at quansoft.com
Wed Jul 3 22:29:46 CDT 2013
Dear Riki
You can issue two Plot commands, one for the set of data before the gap, and the other for the set of data after the gap.
Alternatively, if you have lots of gaps and/or if you have to do it often, you could write a script. It would basically look something like this:
program MyPlotCommand;
const
xCol = 1;
yCol = 2;
var r: integer;
gap: Boolean;
x, y: real;
begin
CreateNewGraph(0, 10, 0, 10, 0, 0);
gap := true;
OpenCurve(name 'the data');
for r := 1 to NrRows do
begin
if DataOk(r, xCol) and DataOK(r, yCol) then
begin
x := data[r, xCol];
y := data[r, yCol];
if gap then
MoveTo(x, y)
else
LineTo(x, y);
gap := false;
end
else
gap := true;
end;
CloseCurve;
end;
This script runs through the data and issues MoveTo and LineTo commands into a graph in order to create a curve with gaps in it.
Best regards
Kurt Sutter
On Jun 26, 2013, at 7:24 AM, riki <riki80 at rediffmail.com> wrote:
> Hi all,
>
> How can we disconnect two data points in Pro Fit using the information from data file. In gnuplot, we can do this just by
> putting a blank line between those data points in the data file.
>
> Cheers!
> Riki
>
>
> Get your own FREE website and domain with business email solutions, click here
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20130704/6f282449/attachment.htm>
More information about the proFit-list
mailing list