summaryrefslogtreecommitdiff
path: root/Windows/spice/share/ngspice/scripts/devload
blob: d007fad5c53f0d9f4b7da91e05917636fc60dc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
* initialize a device plot
.control
begin
  unset devfile
  if $argc = 1
    set devfile = $argv[1]
    load $devfile
    strcmp flag "$?&y" "1"
    if ($flag = 0)
      let yaxis = y[0]
      transpose all
      let xaxis = x[0]
      transpose all
      setscale yaxis
    end
  else
    echo "usage: devload <filename>"
  end

  unset devfile flag
end