File: newchie.tmpl

package info (click to toggle)
libdemeter-perl 0.9.27%2Bds6-9
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 74,028 kB
  • sloc: perl: 73,233; python: 2,196; makefile: 1,999; ansic: 1,368; lisp: 454; sh: 74
file content (33 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download
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
26
27
28
29
30
31
32
33
{ # -*- ifm -*-
  # template for new plot in k
  #   {$D->group} returns the ifeffit group name
  #   {$D->parameter} returns the value of that parameter
  #   {$P->parameter} returns the value of a Plot parameter
  #
  #  color fg bg grid gridcolor
}
{
  $this = $PT || $D;
  $ylabel = $P->plot_kylabel;
  $file = $P->tempfile;
  $this->points(file    => $file,
                space   => 'chie', 
	        suffix  => 'chi',
	        scale   => $D->plot_multiplier,
	        yoffset => $D->y_offset,
	        weight  => $D->get_kweight,
	       );
  $thiskey = $D->plotkey || $C->get('plot_part') || $P->key;
  $thiskey =~ s{_}{\\\\_}g;
  if (ref($PT) =~ m{Path}) { $thiskey = $PT->name || 'Path '.$PT->Index };
  q{}
}
## gnuplot script

set title "\{/*1.5 {$P->escapedtitle}\}"
set xlabel "\{/*1.4 Energy&\{aa\}(eV)\}"
set ylabel "\{/*1.2 {$ylabel}\}"
set xrange [ {$D->bkg_e0+$P->emin} : {$D->bkg_e0+$P->emax} ]

# {$this->name}: ifeffit group = {$D->group}
plot '{$file}' using 1:2 with {$C->default("gnuplot", "datastyle")} ls {$P->increm+1} title "{$thiskey}"