2 # Experimental option GP_MACROS
5 if ((GPVAL_VERSION == 4.1 || GPVAL_VERSION == 4.2) \
6 && (!strstrt(GPVAL_COMPILE_OPTIONS,"+MACROS"))) \
7 print ">>> Skipping demo <<<\n" ; \
8 print "This copy of gnuplot was built without support for macro substitution\n" ; \
12 title = "Test of command line macro substitution"
15 plot1 = "'1.dat' using 1:2 with @style1"
16 plot2 = "'1.dat' using 1:($2+1) with @style2"
23 plot @plot1 title 'plot1', \
27 pause -1 "<cr> to test recursion depth"
29 plot @plot1 title 'plot1', @plot3 lt 3 title 'Recursion depth 3'
31 plot @plot1 title 'plot1', @plot4 lt 4 title 'Recursion depth 4'
33 plot @plot1 title 'plot1', @plot5 lt 5 title 'Recursion depth 5'
35 plot @plot1 title 'plot1', @plot6 lt 6 title 'Recursion depth 6'