Browse Source

Plotting with feh in macOS failes with --magick-timeout,

so replace it by --conversion-timeout, which does not do
in Linux or Cygwin.
pre-master-46
Holger Vogt 5 years ago
parent
commit
5b3007e06a
  1. 10
      examples/svg/nmos_out_BSIM330_png.sp
  2. 10
      examples/svg/nmos_out_BSIM330_svg-2.sp
  3. 22
      examples/svg/nmos_out_BSIM330_svg.sp
  4. 12
      examples/svg/nmos_out_BSIM330_various.sp

10
examples/svg/nmos_out_BSIM330_png.sp

@ -34,13 +34,17 @@ set nolegend
* only the gnuplot window, no gnuplot files * only the gnuplot window, no gnuplot files
gnuplot temp vss#branch vss2#branch title 'Drain current versus drain voltage' xlabel 'Drain voltage / V' ylabel 'Drain current / µA' gnuplot temp vss#branch vss2#branch title 'Drain current versus drain voltage' xlabel 'Drain voltage / V' ylabel 'Drain current / µA'
* for MS Windows only
* MS Windows
if $oscompiled = 1 | $oscompiled = 8 if $oscompiled = 1 | $oscompiled = 8
shell Start c:\"program files"\irfanview\i_view64.exe plot_1.png shell Start c:\"program files"\irfanview\i_view64.exe plot_1.png
else else
if $oscompiled = 7
* macOS (using feh from homebrew)
shell feh --conversion-timeout 1 plot_1.png &
else
* for CYGWIN, Linux * for CYGWIN, Linux
shell feh --magick-timeout 1 plot_1.png &
shell feh --magick-timeout 1 plot_1.png &
end
end end
.endc .endc

10
examples/svg/nmos_out_BSIM330_svg-2.sp

@ -51,9 +51,15 @@ if $oscompiled = 1 | $oscompiled = 8
shell Start plot_10.svg shell Start plot_10.svg
shell Start plot_11.svg shell Start plot_11.svg
else else
if $oscompiled = 7
* macOS (using feh from homebrew)
shell feh --conversion-timeout 1 plot_10.svg &
shell feh --conversion-timeout 1 plot_11.svg &
else
* for CYGWIN, Linux * for CYGWIN, Linux
shell feh --magick-timeout 1 plot_10.svg &
shell feh --magick-timeout 1 plot_11.svg &
shell feh --magick-timeout 1 plot_10.svg &
shell feh --magick-timeout 1 plot_11.svg &
end
end end
.endc .endc

22
examples/svg/nmos_out_BSIM330_svg.sp

@ -81,13 +81,23 @@ if $oscompiled = 1 | $oscompiled = 8
shell Start plot_4.svg shell Start plot_4.svg
shell Start plot_5.svg shell Start plot_5.svg
else else
if $oscompiled = 7
* macOS (using feh and ImageMagick from homebrew)
shell feh --conversion-timeout 1 plot_0.svg &
shell feh --conversion-timeout 1 plot_1.svg &
shell feh --conversion-timeout 1 plot_2.svg &
shell feh --conversion-timeout 1 plot_3.svg &
shell feh --conversion-timeout 1 plot_4.svg &
shell feh --conversion-timeout 1 plot_5.svg &
else
* for CYGWIN, Linux * for CYGWIN, Linux
shell feh --magick-timeout 1 plot_0.svg &
shell feh --magick-timeout 1 plot_1.svg &
shell feh --magick-timeout 1 plot_2.svg &
shell feh --magick-timeout 1 plot_3.svg &
shell feh --magick-timeout 1 plot_4.svg &
shell feh --magick-timeout 1 plot_5.svg &
shell feh --magick-timeout 1 plot_0.svg &
shell feh --magick-timeout 1 plot_1.svg &
shell feh --magick-timeout 1 plot_2.svg &
shell feh --magick-timeout 1 plot_3.svg &
shell feh --magick-timeout 1 plot_4.svg &
shell feh --magick-timeout 1 plot_5.svg &
end
end end
.endc .endc

12
examples/svg/nmos_out_BSIM330_various.sp

@ -66,10 +66,16 @@ hardcopy plot_5.svg vss#branch title 'Drain current versus drain voltage' xlabel
if $oscompiled = 1 | $oscompiled = 8 if $oscompiled = 1 | $oscompiled = 8
shell Start /B plot_4.svg shell Start /B plot_4.svg
shell Start /B plot_5.svg shell Start /B plot_5.svg
* for CYGWIN, Linux
else else
shell feh --magick-timeout 1 plot_4.svg &
shell feh --magick-timeout 1 plot_5.svg &
if $oscompiled = 7
* macOS (using feh from homebrew)
shell feh --conversion-timeout 1 plot_4.svg &
shell feh --conversion-timeout 1 plot_5.svg &
* for CYGWIN, Linux
else
shell feh --magick-timeout 1 plot_4.svg &
shell feh --magick-timeout 1 plot_5.svg &
end
end end
.endc .endc

Loading…
Cancel
Save