# thsi9710.plt set terminal latex set output 'th9709uu.tex' set nokey set size 1.0 , 0.5 set xrange [-3:9] set yrange [0:3] set samples 500 f(x) = (x<-1) ? 0 : ( (x<1) ? 1 : 0 ) g(x) = (x<06) ? 0 : ( (x<8) ? 1 : 0 ) plot f(x) with line 1 ,g(x) with line 1