Skip to content

Commit

Permalink
Added small script to save plots to PostScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward R. Bennigsen committed Feb 24, 2017
1 parent 6276169 commit 76aa9bf
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ hs_err_pid*

# Project files
*.data

# Output files
*.png
*.ps
36 changes: 36 additions & 0 deletions gnuplot/save.plt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Based on http://people.duke.edu/~hpgavin/gnuplot.html
# File name: save.plt - save a Gnuplot plot as a PostScript/PNG file
# to use:
# gnuplot> load 'save.plt'
# gnuplot> !mv my-plot.ps another-file.ps
set size 1.0, 0.6
set terminal postscript portrait enhanced mono dashed lw 1 "Helvetica" 14
#set terminal png large
set output "my-plot.png"
replot
set terminal x11
set size 1,1

# set terminal postscript {<mode>} {enhanced | noenhanced}
# {color | colour | monochrome}
# {blacktext | colortext | colourtext}
# {solid | dashed} {dashlength | dl <DL>}
# {linewidth | lw <LW>}
# {<duplexing>}
# {"<fontname>"} {<fontsize>}


# set terminal gif {transparent} {interlace}
# {tiny | small | medium | large | giant}
# {size <x>,<y>}
# {<color0> <color1> <color2> ...}

# set terminal png
# {{no}transparent} {{no}interlace}
# {tiny | small | medium | large | giant}
# {font <face> {<pointsize>}}
# {size <x>,<y>} {{no}crop}
# {{no}enhanced}
# {<color0> <color1> <color2> ...}


0 comments on commit 76aa9bf

Please sign in to comment.