set tics scale 0.8
set tics out
set format '$%g$'
unset grid
unset key

# on white background:
set style line  1 lt -1 lc rgb "black" lw 2              # border
set border back ls 1
set style line  2 lt 1 lc rgb "black" lw 4 pt 7 ps 2     # thick line
set style line  3 lt 1 lc rgb "black" lw 2               # thin line
set style line  4 lt 3 lc rgb "black" lw 1               # grid line

set style line 10 lt 1 lc rgb "#00DD00" lw 6          # stimulus thick, AM
set style line 11 lt 1 lc rgb "#00DD00" lw 3          # stimulus thin, AM
set style line 15 lt 1 lc rgb "black" lw 15              # stimulus bar

set style line 20 lt 1 lc rgb "yellow" lw 4              # thin spikes cell 1
set style line 21 lt 1 lc rgb "orange" lw 4              # thin spikes cell 2
set style line 22 lt 1 lc rgb "yellow" lw 6              # thick spikes cell 1
set style line 23 lt 1 lc rgb "orange" lw 6              # thick spikes cell 2
set style line 24 lt 1 lc rgb "blue" lw 22               # big sync spikes
set style line 25 lt 1 lc rgb "blue" lw 6                # thick sync spikes
set style line 26 lt 1 lc rgb "orange" lw 4              # all spikes

set style line 30 lt 1 lc rgb "dark-red" lw 6 pt 7 ps 2   # firing rate 1 thick
set style line 31 lt 1 lc rgb "red" lw 6 pt 7 ps 2        # firing rate 2 thick
set style line 32 lt 1 lc rgb "orange" lw 6 pt 7 ps 2     # firing rate 3 thick
set style line 33 lt 1 lc rgb "blue" lw 6 pt 7 ps 2       # firing rate 4 thick
set style line 34 lt 1 lc rgb "gray" lw 6                 # firing rate gray thick
set style line 35 lt 1 lc rgb "dark-red" lw 3 pt 7 ps 0.7 # firing rate 1 thin
set style line 36 lt 1 lc rgb "red" lw 3                  # firing rate 2 thin
set style line 37 lt 1 lc rgb "orange" lw 3               # firing rate 3 thin
set style line 38 lt 1 lc rgb "blue" lw 3                 # firing rate 4 thin
set style line 39 lt 1 lc rgb "gray" lw 3                 # firing rate gray thin

set style line 40 lt 1 lc rgb "green" lw 6 pt 5 ps 2     # onset f-I curve thick
set style line 41 lt 1 lc rgb "green" lw 3 pt 5 ps 2     # onset f-I curve thin
set style line 42 lt 1 lc rgb "red" lw 6 pt 7 ps 2            # steady-state f-I curve thick
set style line 43 lt 1 lc rgb "red" lw 3 pt 7 ps 2            # steady-state f-I curve thin
set style line 44 lt 1 lc rgb "blue" lw 6 pt 9 ps 2           # adapted f-I curve thick
set style line 45 lt 1 lc rgb "blue" lw 3 pt 9 ps 2           # adapted f-I curve thin
set style line 47 lt 1 lc rgb "cyan" lw 6                     # adaptation level thick
set style line 48 lt 1 lc rgb "cyan" lw 3                     # adaptation level thin
set style line 49 lt 1 lc rgb "yellow" lw 3 pt 7 ps 4         # current adaptation point

set style line 50 lt 1 lc rgb "dark-red" lw 4         # membrane voltage 1
set style line 51 lt 1 lc rgb "red" lw 4              # membrane voltage 2
set style line 52 lt 1 lc rgb "orange" lw 4           # membrane voltage 3
set style line 55 lt 1 lc rgb "orange" lw 4           # nerve potential

set style line 60 lt 1 lc rgb "blue" lw 4             # gating variable 
set style line 61 lt 1 lc rgb "cyan" lw 4             # gating variable average

set style line 70 lt 1 lc rgb "red" lw 4              # ionic current
set style line 71 lt 1 lc rgb "orange" lw 4           # ionic current average

set style line 80 lt 1 lc rgb "#77FFFF" lw 4 pt 13 ps 2.4# baseline
set style line 81 lt 1 lc rgb "#FF5533" lw 4 pt 9 ps 2.8 # beat
set style line 82 lt 1 lc rgb "yellow" lw 4 pt 7 ps 2.4  # chirp
set style line 83 lt 1 lc rgb "#FF7700" lw 4 pt 11 ps 2.8# beat shuffled
set style line 84 lt 1 lc rgb "#FFAA00" lw 4 pt 5 ps 2.2 # chirp shuffled

set style line 90 lt 1 lc rgb "#77FFFF" lw 2             # EOD thin
set style line 91 lt 1 lc rgb "#77FFFF" lw 4             # EOD thick

set term epslatex input color dashed rounded size 11.4cm, 6.6cm