gnuplot / plot (5E)
not so FAQ |
About 2-Dimensional Plot (No.5)A small figure in a figure Making a small figure inside a figure. Sometimes you may see a gnuplot> set xrange [ 0 : 20 ] gnuplot> set yrange [ 0 : 6 ] gnuplot> set xtics 5 gnuplot> set ytics 1 gnuplot> set multiplot multiplot> set origin 0.0,0.0 multiplot> set size 1.0,1.0 multiplot> plot "file.dat" u 1:2:3 notitle with yerrorbars, > "file.cal" u 1:2 notitle with lines Move the origin to the vacant place (0.45,0.1), and draw a small multiplot> set origin 0.45,0.1 multiplot> set size 0.5,0.5 multiplot> set xrange [ 1 : 5 ] multiplot> set yrange [ 2.4 : 3.0 ] multiplot> set ytics 0.5 multiplot> replot multiplot> set nomultiplot gnuplot> Now you can see clearly the part where there exists many X and Y axis names for the small graph should be empty, A simple bar-chart Gnuplot (if older than ver.3.6) draws open rectangulars when If you are making a Postscript figure, the easiest way is to draw a gnuplot> set term postscript eps enhanced color gnuplot> set linestyle 1 lt 1 lw 50 gnuplot> # for gnuplot ver.4 gnuplot> # set style line 1 lt 1 lw 50 gnuplot> plot "test.dat" using 1:2 with imp ls 1 ![]() [ver.4] ONLY ! Gnuplot Ver.4 has an option to fill the boxes, which is with In the case of with boxes fs pattern , the pattern number In the example below, (3) stands for the bar-width. gnuplot> plot "test.dat" usi 1:2:(3) w boxes fs pattern 1, gnuplot> "test.dat" usi ($1+5):2:(3) w boxes fs solid 0.7 ![]() |