Gnuplot learning notes install gnuplot-x11 (can be output to X11) help $ gnuplot> help some_command example # output set term postscript eps enhanced size 3.7, 5 # enhanced use enhanced text, the size (in) of the size chart. The default value of terminal is wxt (X11) set output "psr. eps "# output file name # Coordinate Axis set xlabel" Period (s) "# x axis label set logscale x # set the x axis to the logarithm coordinate set xtics 1e-9,-1000, 1e-24 # X axis scale range # set xtics (0.001, 10) set xr [: 20] # X axis range set ydata time # set Y axis data to time set timefmt "% H: % M: % S "# set the time format Set format y "% g {/Symbol \ 260}" # y axis scale format # mark set key 0.01, 100 # legend position # unset key # cancel legend set arrow from 0.1, 2 to 0.2, 3 # arrow set label "peak" at 0.01, 10 rotate by 10 # label # variable a = 3*2 ** 3 # plot ". dat "using title 'relation' with points pointtype 6 linetype rgb" red "pointsize 1, \ # data file ing x ** 2 with line linetype 5 # function for graph file conversion eps-> pdf (otherwise, the enhance text inserted in tex will display an exception) epstopdf *. eps pdflatex *. pdf enhanced text Operators ^ A ^ x superscript \ superscript _ a_x subscript \ subscript @ a @ ^ B _c superscript and subscript appear at the same time \ phantom box (occupies no width) & {space} Insert the specified width blank \ inserts space of specified length ~ ~ A {0.8-} place the suffix on the top of the prefix \ overprints '-'on 'A', raised by 0.8 times the current fontsize