You can create gnuplot diagrams as normal images. pd2tex has support to automatically invoke gnuplot if there is a file whose name corresponds to missing image and ends in the extension .gnuplot. The file must contain gnuplot commands, but due to gnuplot's ability process inline data (file name '-' in plot command), can also contain the data itself.
Another way to create a gnuplot diagram is using gnuplot directive and include the gnuplot commands and data inline in your .pd file. For example:
<<gnuplot: name-for-diag,,2: Legend for gnuplot diagram. set terminal postscript eps lw 3.0 24 set nokey set xlabel "Dosímetros" set ylabel "Factor de sensibilidade" plot [0:10] [0:1.5] '-' using 1:($2/14.57) with errorbars # media 14.57, desvio padrao 0.98 # num Valor Normalizado (mal, com f=med/N, deve ser f=N/med) 1 14.29 .02 2 14.39 .01 3 13.56 .07 4 14.78 .99 5 14.15 .03 e >>
Note how '-' was specified to include the data inline and last
line is e to indicate the end of the data. Your data SHOULD start with
set terminal postscript eps stanza
. If this line is missing, it will be supplied with
one using default arguments. If you do not want to use Latin 1
(ISO-8889-1) encoding, you should specify the desired encoding on the
first line. See gnuplot(1) documentation for further information. The
above would create output in Fig-4.

Fig-4: Legend for gnuplot diagram.