1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
{ # -*- ifm -*-
# template for overplotting an LCF fit in energy
# {$D->group} returns the ifeffit group name
# {$D->parameter} returns the value of that parameter
# {$P->parameter} returns the value of a Plot parameter
}
{
$suffix ||= 'lcf';
$file = $P->tempfile;
$S->points(file => $file,
space => ($suffix =~ m{chir}) ? 'r' : 'lcf',
suffix => $suffix,
yoffset => $yoffset,
scale => 1,
);
$thiskey = ($suffix eq 'resid') ? 'residual'
: ($suffix eq 'lcf') ? 'LCF fit'
: ($suffix =~ m{chir}) ? 'LCF fit'
: ($suffix eq 'func') ? $S->data->name
: $S->mo->fetch('Data', $suffix)->name;
$thiskey =~ s{_}{\\\\_}g;
q{}
}
# LCF fit: plot {$thiskey}
replot '{$file}' using 1:2 with {$C->default("gnuplot", "datastyle")} ls {$P->increm+1} title "{$thiskey}"
|