# lineplot"data1.dat"using4:5withlines# line with custom styleplot"data1.dat"using4:5withlineslinestyle1# line with custom line widthplot"data1.dat"using4:5withlineslw4# pointsplot"data1.dat"using4:5withpoints# points of custom typeplot"data1.dat"using4:5withpoints pt 19# lines AND pointsplot"data1.dat"using4:5withlinespoints pt 1# labels in addition to pointsplot"data1.dat"using4:5:1withlabels offset 0.7,0.7# to find out point types and line width availabletest

gplaunch plot.gp run.dat
./plot.gp run.dat # if gplaunch is installed on the system

File outputs

In general be sure that you don't have another “set term” command in your plotting code.

EPS and PDF:

setterminalpostscriptepscolor"Times-Roman"16setoutput'plot.eps'# your plotting code (can be included using the load command)setoutput!epstopdf --outfile=plot.pdf plot.epsquit

By default, when exporting to ps or pdf, gnuplot changes the lines style with dashes so that they can be recognized when printed in black and white. If you want to keep your lines plain, you can either add the “solid” option to the terminal command, or add the “ls 1” command:

Interactivity

Keyboard bindings

bind"a""plot x*x"

Progressive display (but the plot is not interactive anymore)

plot"file.dat" u 1
while(1){replot ; pause0.2}

Pausing and resuming the progressive display for interactivity (only works with x11 terminal if started in interactive gnuplot shell… for wxt terminal the event processing loop – wxt_gui.cpp:wxt_waitforinput function – is not called during the update loop, but ctrl-c in the shell stops the update loop and allows plot interactivity afterwards, contrary to x11 term…).