You are on page 1of 2

# Output #set term postscript eps enhanced #set terminal latex #set output 'fig1.

tex' set terminal wxt size 350,262 enhanced font 'Verdana,10' persist #set key spacing 1cm #set key autotitle columnheader set termoption dash # Line styles set size ratio 0.75 set border linewidth 1.5 set style line 1 linecolor rgb '#0060ad' linetype set style line 2 linecolor rgb '#dd181f' linetype set style line 3 linecolor rgb '#00ff7f' linetype set style line 4 linecolor rgb 'black' linetype 2 ize default pointinterval 0# black #set style line 1 lt 2 lc rgb "red" lw 3 # Dotted set style fill transparent solid 0.1 # Title #set title 'Giapetto`s unbounded universe' # Legend #set key at 6.1,1.3 # Axes label set xlabel 'Soldiers' set ylabel 'Trains' # Axis ranges set xrange[0:100] set yrange[0:90] # Axis labels #set xtics ("-2" -2*pi, "-" -pi, 0, "" pi, "2" 2*pi) #set ytics 1 #set tics scale 0.75 # Functions to plot set multiplot a = -2 b=0 f(x) = a * x + 100 g(x) = -x + 80 #set nokey #set style line 5 linecolor rgb 'white' linetype 1 linewidth 2 # white #plot #plot #plot #plot b*x with lines ls 5 f(x) title 'Finishing Constraint' with filledcurves ls 1 rgb 'gray0' f(x) title 'Finishing Constraint' with filledcurves above x1=0 ls 1 h(x) title 'Soldier demand Limit' with filledcurves above x1=0 ls 3

1 linewidth 1 linewidth 1 linewidth linewidth 2

2 # blue 2 # red 2 # green pointtype 2 points

red line with width 3

plot f(x) title 'Finishing Constraint' with filledcurves above x1=0 ls 1, g(x) t itle 'Carpentry Constraint' with filledcurves above x1=0 ls 2

#set key at 380, 150 #set key at 35, 26 #set key spacing 5 set parametric set trange [0:90] #set key center right set key at first 99, first 85 plot 40, t title 'Soldier demand Limit'with lines ls 3 set nokey set trange [0:60] plot 20, t with lines ls 4 unset parametric set key at first 80, first 70 p(x) = -1.5*x + 90 plot p(x) title 'Isoprofit line with z=180' ls 4 set nokey q(x) = 60 plot q(x) with lines ls 4 #plot title #plot #plot title f(u) title 'Carpentry f(x) title f(x) title 'Carpentry 'Finishing Constraint' with filledcurves Constraint' with filledcurves above u1=0 'Finishing Constraint' 'Finishing Constraint' with filledcurves Constraint' with filledcurves above x1=0 above u1=0 ls 1, g(u) ls 2 above x1=0 ls 1, g(x) ls 2

You might also like