# $ gnuplot "$d_webRawe""Projects - mini/Puetz & Borchardt/Puetz UWS model for SP500 1870-2030 non-fitted.plt" # www.BillHowell.ca 28Dec2020 initial # data sources : # Puetz, Stephen J., Prokoph, Andreas, Borchardt, Glenn, Mason 2014, Evidence of Synchronous, Decadal to Billion Year Cycles in Geological, Genetic, and Astronomical Events: Chaos, Solitons & Fractals, v. 62–63, p. 55-75 [ http://dx.doi.org/10.1016/j.chaos.2014.04.001]. # Stephen J. Puetz, Glenn Borchardt 2011 "Universal Cycle Theory : Neomechanics of the hierarchically infinite universe" http://www.OutskirtsPress.com ISBN: 978-1-4327-8133-0 http://www.amazon.com/dp/1432781332 # Stephen J. Puetz 2009 "The Unified Cycle Theory: How cycles dominate the structure of the universe and influence life on Earth" http://www.OutskirtsPress.com Denver Colorado USA, ISBN: 978-1-4327-1216-7 http://www.amazon.com/dp/1432712160 http://www.uct-news.com/ #******************* set terminal pngcairo enhanced font "arial,10" fontscale 1.0 size 1400, 300 set datafile separator "{,}" # tab as column separator -> "{/Symbol \11}"; comma "{,}" set key autotitle columnhead # use the first line of datafile as legend titles # legend placement (leave out for upper right?) # [, outside] cart [top, center, bottom] cart [left, center, right] set key right top set output "/media/bill/SWAPPER/Website - raw/Projects - mini/Puetz & Borchardt/Puetz UWS model for SP500 1870-2030 non-fitted.png" set title "Puetz regular UWS model for SP500, unfitted [phase, amplitude]s of cycles\n see http://www.BillHowell.ca/Projects - mini/Puetz & Borchardt/" set key autotitle columnhead # use the first line of datafile as legend titles set xlabel "Stephen J. Puetz, Glenn Borchardt 2011 'Universal Cycle Theory : Neomechanics of the hierarchically infinite universe' http://www.OutskirtsPress.com ISBN: 978-1-4327-8133-0 http://www.amazon.com/dp/1432781332" set ylabel "UWS amplitude" set label "www.BillHowell.ca" at graph 0.01,0.93 noenhanced set label "using (cycles 27 to 35) = (7.822E-02 to 5.132E+02 year), factor 3 from cycle to cycle" at graph 0.01,0.85 noenhanced set label "phase lags θnL_UWS as per 2011 refernce below, assume 2010 reference year" at graph 0.01,0.7 noenhanced # {left | center | right} # {norotate | rotate {by }} # {font "{,}"} # {noenhanced} # {front | back} # {textcolor } # {point | nopoint} # {offset } # {boxed} # {hypertext} show label set grid set xrange [ 1870. : 2030. ] set yrange [ -15. : 20. ] set nologscale x set nologscale y set xtics 10 set ytics (0.236, 0.382, 0.5, 0.724, 1., 1.382, 2., 2.618, 4.23729) # Fibonnacci #http://gnuplot.sourceforge.net/docs_4.2/node237.html # set style line default # set style line {{linetype | lt} | } # {{linecolor | lc} } # {{linewidth | lw} } # {{pointtype | pt} } # {{pointsize | ps} } # {palette} # unset style line # show style line # https://stackoverflow.com/questions/16736861/pointtype-command-for-gnuplot # I'm guessing that ' w lp ' gives lines&points, 'w l' lines only? # with [points, linespoints, lines] ? # Howell's standard color scheme - can add more with spacialFeatureLines # $ show colornames - for a list of Linux standard colors set style line 100 lt 1 ps 0 lw 2 lc rgb "black" set style line 101 lt 1 ps 0 lw 2 lc rgb "dark-grey" set style line 102 lt 1 ps 0 lw 2 lc rgb "red" set style line 103 lt 1 ps 0 lw 2 lc rgb "dark-magenta" set style line 104 lt 1 ps 0 lw 2 lc rgb "dark-cyan" set style line 105 lt 1 ps 0 lw 2 lc rgb "pink" set style line 106 lt 1 ps 0 lw 2 lc rgb "dark-orange" set style line 107 lt 1 ps 0 lw 2 lc rgb "dark-yellow" set style line 108 lt 1 ps 0 lw 2 lc rgb "green" set style line 109 lt 1 ps 0 lw 2 lc rgb "magenta" set style line 110 lt 1 ps 0 lw 2 lc rgb "blue" set style line 111 lt 1 ps 0 lw 2 lc rgb "navy" set style line 112 lt 1 ps 0 lw 2 lc rgb "violet" # for dashed lines, http://lowrank.net/gnuplot/misc4-e.html - but only for the terminal? set style line 200 dt 4 ps 0 lw 2 lc rgb "black" set style line 201 dt 4 ps 0 lw 2 lc rgb "dark-grey" set style line 202 dt 4 ps 0 lw 2 lc rgb "red" set style line 203 dt 4 ps 0 lw 2 lc rgb "dark-magenta" set style line 204 dt 4 ps 0 lw 2 lc rgb "dark-cyan" set style line 205 dt 4 ps 0 lw 2 lc rgb "pink" set style line 206 dt 4 ps 0 lw 2 lc rgb "dark-orange" set style line 207 dt 4 ps 0 lw 2 lc rgb "dark-yellow" set style line 208 dt 4 ps 0 lw 2 lc rgb "green" set style line 209 dt 4 ps 0 lw 2 lc rgb "magenta" set style line 210 dt 4 ps 0 lw 2 lc rgb "blue" set style line 211 dt 4 ps 0 lw 2 lc rgb "navy" set style line 212 dt 4 ps 0 lw 2 lc rgb "violet" # example : 1:2 w lp ls 100 : # select data columns 1:2 # lt = line thickness (1 is normal) # lw = line width # lp = line between each successive point # ls 100 = line style 100 # ps 0 = point size (datapoint circle, triangle, etc) # dt 2 = dash type 2 # specialFeatureLines are added here. examples : # set arrow from 1926.25,0.2 to 1926.25,5.0 nohead linecolor "blue" set terminal pngcairo enhanced font "courrier,10" set label 9 "{yDeTrend = log( yObserved / yTrend )}" at graph 0.01, 0.95 textcolor "black" set label 1 "{yTrend = 10 power ( + *yrFrac)}" at graph 0.01, 0.90 textcolor "black" set label 2 "{/courier=8 symName, dateRange constant slope StdErrEst relStdErr relStdDev}" at graph 0.01, 0.30 textcolor "black" set label 3 "{/courier=8 DAX40 Jan1970-Jul2022 -61.6477 0.0325751 0.114373 1.30129 0.254864}" at graph 0.01, 0.25 textcolor "black" set label 4 "{/courier=8 INDIA50 Mar2013-Jul2022 -96.353 0.0497353 0.031161 1.07439 0.070384}" at graph 0.01, 0.20 textcolor "green" set label 5 "{/courier=8 NI225 Jan1984-Jul2022 - 1.6684 0.0029173 0.140672 1.38252 0.366279}" at graph 0.01, 0.15 textcolor "red" set label 6 "{/courier=8 SP500 1872-2020 -61.6477 0.0325751 0.114373 1.30129 0.254864}" at graph 0.01, 0.10 textcolor "blue" set label 7 "{/courier=8 UKX100 Apr1988-Jul2022 -25.5175 0.0145593 0.089400 1.22857 0.201597}" at graph 0.01, 0.05 textcolor "brown" plot \ '/media/bill/SWAPPER/Website - raw/economics, markets/SP500/PuetzUWS/SP500 1872-2020.dat' using 1:2 w lp ls 100 title "curve1", \ '/media/bill/SWAPPER/Website - raw/economics, markets/SP500/PuetzUWS/SP500 1872-2020.dat' using 3:4 w lp ls 100 title "curve2" # enddoc