Gnuplot output directory

Tabellen und Grafiken erstellen und anordnen


I_gamer
Forum-Newbie
Forum-Newbie
Beiträge: 1
Registriert: Fr 22. Apr 2016, 14:10

Gnuplot output directory

Beitrag von I_gamer »

Hallo,

ich habe ein Problem mit gnuplot und LaTeX. Ich verwende die Option output directory bei pdflatex. Durch diese Option bekomme ich jetzt immer wenn ich gnuplot verwende Fehler.

LaTeX gibt mir immer Folgenden Fehler aus:

! Package pgfplots Error: Sorry, the gnuplot-result file 'Bericht.bal.table' could not be found.

Bei diesem Code:
\begin{minipage}{\textwidth}
\centering
	\begin{tikzpicture}
		\begin{axis}
			\addplot [color=magenta, only marks, mark = *] file {data3-3r.dat};
			\addplot gnuplot
			    [raw gnuplot,id=bal,mark=none, color=red]{
			    set xrange  [0:20000];
			    f(x)=a*x+b;
			    fit f(x) "data3-3r.dat" via a,b;
			    plot f(x)};
			\addplot [color=blue, only marks, mark = *] file {data3-3l.dat};
			\addplot gnuplot
			    [raw gnuplot,id=bal,mark=none, color=green]{
			    set xrange  [0:20000];
			    f(x)=a*x+b;
			    fit f(x) "data3-3l.dat" via a,b;
			    plot f(x)};
		\end{axis}
	\end{tikzpicture}
\end{minipage}

Wenn ich die Option mit dem outputdirectory rausnehme funktioniert es, aber ich mag es nicht wenn er mir alle Datein in meinen "Haupt"-Ordner packt.

Weiß zufällig jemand wie ich gnuplot sagen kann das es die Datei im Ordner x suchen soll?

Gruß
I_gamer