File: f2.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 (21 lines) | stat: -rw-r--r-- 848 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
{ # -*- ifm -*-
  # template for plotting theoretical anomalous scattering
  #   {$C} is the config object
  #
  # f1f2_emin  : beginning of plot range
  # f1f2_emax  : end of plot range
  # f1f2_egrid : spacing of plot grid
  # f1f2_z     : element to be plotted
  $z = Chemistry::Elements::get_Z($C->get("f1f2_z"));
  $name = Chemistry::Elements::get_name($C->get("f1f2_z"));
  $w = $C->get("f1f2_width") || -2;
  $first = ($C->get("f1f2_newplot")) ? "plot" : "replot";
  q{}
}
## gnuplot f1f2 plot script
set title  '\{/*1.5 Imaginary part of the complex scattering factor\}'
set xlabel '\{/*1.2 Energy (eV)\}'
set ylabel '\{/*1.2 Complex scattering factor\}'
set xrange [ 0.98*{$C->get("f1f2_emin")} : 1.04*{$C->get("f1f2_emax")} ]

{$first} '{$C->get("f1f2_file")}' using 1:3 with {$C->default("gnuplot", "datastyle")} ls 1 title '{$name} f1'