Hello gmedina,
I allready tried pgfplots. The matter is, that the data files I am plotting are really big. I have 100.000 lines there and i need 36 graphs. Even if I extent the memory, it takes a while. I killed the pdflatex process after 20 minutes (with gnuplot i need less than 1 minute).
I also read that, one can parse gnuplot through pgfplot. But, if I understood right, this is only for mathematical terms. Gnuplot calculates the data and pgfplots draws it. So this should also be no solution for me.
Also I had a look at pst-plot. But I didn't get the graph scaled exactly. And this is just too much work for so many diagrams. Specially when I experiment with parameters.
But thank you for your effort with the example, gmedina!!
At the Moment I use a workaround. I am not really sattisfied, but it could probably help others:
First I create gnuplot-srcipts like this:
b_cB1.plt
Code: Select all
reset
set terminal postscript eps enhanced color
set output "b_cB1.eps"
set xlabel "t [d]"
set ylabel "c [kg/m^3]"
set autoscale
set key bottom left
plot 'b1.csv' using 1:6 with lines title "1. Ordnung" lw 3 lt 1 smooth csplines
Then I use a Script to create eps and mps files. On my Ubuntu 10.04 I need
texlive-metapost and
pstoedit packages.
Code: Select all
#!/bin/bash
gnuplot *.plt # batch convert all gnuplot scripts in this folder
for i in *.eps # convert eps to mps
do
i=$(basename $i .eps)
pstoedit -f mpost -fontmap /usr/share/pstoedit/mpost.fmp $i.eps tmp-file.mp
mpost tmp-file.mp
mv tmp-file.1 $i.mps
rm -f tmp-file.mp tmp-file.log
done
mv *.mps ./mps/ # move all mps files to folder mps
mv *.eps ./eps/ # move all eps files to folder eps
rm *~ # remove the temporary files
Then i can simply include the graphics in pdflatex by using
\includegraphics{./inc/Diagramme/b_cG2}. The bounding box is fine and subfigure works.
Anyway...I am still thankfull, if someone has a better idea to include the graph code directly in pdflatex!