von xeres » Mi 8. Apr 2015, 08:58
Hallo zusammen,
ich sitze aktuell am Verfassen meiner Masterarbeit und bin ein Latex Neuling.
Ich habe seit ich versuche Diagramme mit tikspictures zu erstellen ein ähnliches Problem wie oben beschrieben.
Bin neu hier und entschuldige mich schon im voraus falls ich Fehler beim beschrieben des Problems machen sollte.
Mein Code sieht, zusammengefasst auf das für tikzpictures notwendige, folgendermassen aus:
\documentclass[12pt,a4paper,twoside,openright]{report}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
% Grafiken
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\pgfplotsset{
compat = 1.3,
cycle list = {
{black}, {lightgray},
{black, densely dashed}, {lightgray, densely dashed},
{black, dotted}, {lightgray, dotted},
{black, loosely dotted}, {lightgray, loosely dotted}
},
%cycle list = {
%{red}, {blue},
%{green}
%},
width = 12cm,
height = 9cm,
every axis/.append style = {
line width = 0.2mm,
tick style = {line width = 0.2mm}
},
every axis plot/.append style = {
line width = 0.4mm
%every axis/.append style = {
%line width = 0.3mm,
%tick style = {line width = 0.3mm}
%},
%every axis plot/.append style = {
%line width = 0.6mm
},
enlarge x limits = false,
enlarge y limits = {value = 0.05, auto},
every axis legend/.append style = {
nodes = right
},
xticklabel style={/pgf/number format/use comma},
yticklabel style={/pgf/number format/use comma},
%xticklabel style={/pgf/number format/fixed},
%yticklabel style={/pgf/number format/fixed},
}
\makeatletter
\pgfplotsset{
/pgfplots/row step/.style={
/pgfplots/x filter/.append code={
\ifnum\coordindex=0
\def\c@pgfplots@eachnthpoint@xfilter{0}
\edef\c@pgfplots@eachnthpoint@xfilter@cmp{#1}
\else
\pgfplotsutil@advancestringcounter\c@pgfplots@eachnthpoint@xfilter
\ifx\c@pgfplots@eachnthpoint@xfilter@cmp\c@pgfplots@eachnthpoint@xfilter
\def\c@pgfplots@eachnthpoint@xfilter{0}
\else
\let\pgfmathresult\pgfutil@empty
\fi
\fi
}
},
}
\makeatother
\pgfplotsset{filter discard warning=false}
\usepgfplotslibrary{external}
\tikzexternalize
\tikzsetexternalprefix{Plots/Cache/}
\begin{document}
\begin{figure}[ht!]
\centering
\tikzsetnextfilename{figure1}
%\tikzset{external/force remake}
\begin{tikzpicture}
\begin{axis}[
name = Schallpegelmessung bei 10 km/h,
width = 12cm,
height = 6cm,
anchor = north,
%yticklabel style={/pgf/number format/fixed, /pgf/number format/precision=3},
%xtick = {0,0.5,...,2.5},
xmin = 400, xmax = 5000,
%minor x tick num = 3,
%minor y tick num = 1,
legend pos = north east,
xlabel = {$f$ in Hz},
ylabel = {$L_{P_{A}}$ in dB}
%xticklabel = \empty
]
\addplot table[x index = 0,y index = 1] {test.txt};
\addlegendentry{test}
\end{axis}
\end{tikzpicture}
\caption{Gegen\"uberstellung des Schallpegels auf feiner Fahrbahn}
\label{fig:fein10vs20}
\end{figure}
\end{document}
die txt-Datei ist angehängt. Da sie ohne weiteres Abgebildet wird gehe ich nicht davon aus dass sie ein Problem darstellt.
Nach dem compilieren wird das Diagramm dargestellt. Ich erhalte jedoch folgende Fehlermeldung:
Package tikz Error: Sorry, the System call 'pdflatex -alt-on-error - interaction=batchmode - jobname "Plots/Cache/figure1"
"\def\tikzexternalrealjob{tests}\Input{tests}"' did NOT result in a usable Output file 'Plots/Cache/figure1' expecte one of .pdf:.jpg:.jpeg:.png).
Please verify that you have enable System calls. for pdflatey, this is 'pdflatey -Shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed?
Error message can be found in 'Plots/Cache/figure1.log'. If you continue now, I'll try to typset the Picture.
Ich hätte gerne auch das .log-file angehängt aber in dem Ordner ist kein log-file. Was ich persönlich sehr seltsam finde.
Das einzige file das in dem Cache ordner liegt ist 'figure1.md5'
Kann mir jemand sagen woran das liegt? und noch besser wie ich das Problem gelöst bekomme?
Danke im voraus!!!
Grüsse
Xeres
- Dateianhänge
-
- test.txt
- (277 Bytes) 363-mal heruntergeladen
Hallo zusammen,
ich sitze aktuell am Verfassen meiner Masterarbeit und bin ein Latex Neuling.
Ich habe seit ich versuche Diagramme mit tikspictures zu erstellen ein ähnliches Problem wie oben beschrieben.
Bin neu hier und entschuldige mich schon im voraus falls ich Fehler beim beschrieben des Problems machen sollte.
Mein Code sieht, zusammengefasst auf das für tikzpictures notwendige, folgendermassen aus:
[code]
\documentclass[12pt,a4paper,twoside,openright]{report}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
% Grafiken
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\pgfplotsset{
compat = 1.3,
cycle list = {
{black}, {lightgray},
{black, densely dashed}, {lightgray, densely dashed},
{black, dotted}, {lightgray, dotted},
{black, loosely dotted}, {lightgray, loosely dotted}
},
%cycle list = {
%{red}, {blue},
%{green}
%},
width = 12cm,
height = 9cm,
every axis/.append style = {
line width = 0.2mm,
tick style = {line width = 0.2mm}
},
every axis plot/.append style = {
line width = 0.4mm
%every axis/.append style = {
%line width = 0.3mm,
%tick style = {line width = 0.3mm}
%},
%every axis plot/.append style = {
%line width = 0.6mm
},
enlarge x limits = false,
enlarge y limits = {value = 0.05, auto},
every axis legend/.append style = {
nodes = right
},
xticklabel style={/pgf/number format/use comma},
yticklabel style={/pgf/number format/use comma},
%xticklabel style={/pgf/number format/fixed},
%yticklabel style={/pgf/number format/fixed},
}
\makeatletter
\pgfplotsset{
/pgfplots/row step/.style={
/pgfplots/x filter/.append code={
\ifnum\coordindex=0
\def\c@pgfplots@eachnthpoint@xfilter{0}
\edef\c@pgfplots@eachnthpoint@xfilter@cmp{#1}
\else
\pgfplotsutil@advancestringcounter\c@pgfplots@eachnthpoint@xfilter
\ifx\c@pgfplots@eachnthpoint@xfilter@cmp\c@pgfplots@eachnthpoint@xfilter
\def\c@pgfplots@eachnthpoint@xfilter{0}
\else
\let\pgfmathresult\pgfutil@empty
\fi
\fi
}
},
}
\makeatother
\pgfplotsset{filter discard warning=false}
\usepgfplotslibrary{external}
\tikzexternalize
\tikzsetexternalprefix{Plots/Cache/}
\begin{document}
\begin{figure}[ht!]
\centering
\tikzsetnextfilename{figure1}
%\tikzset{external/force remake}
\begin{tikzpicture}
\begin{axis}[
name = Schallpegelmessung bei 10 km/h,
width = 12cm,
height = 6cm,
anchor = north,
%yticklabel style={/pgf/number format/fixed, /pgf/number format/precision=3},
%xtick = {0,0.5,...,2.5},
xmin = 400, xmax = 5000,
%minor x tick num = 3,
%minor y tick num = 1,
legend pos = north east,
xlabel = {$f$ in Hz},
ylabel = {$L_{P_{A}}$ in dB}
%xticklabel = \empty
]
\addplot table[x index = 0,y index = 1] {test.txt};
\addlegendentry{test}
\end{axis}
\end{tikzpicture}
\caption{Gegen\"uberstellung des Schallpegels auf feiner Fahrbahn}
\label{fig:fein10vs20}
\end{figure}
\end{document}[/code]
die txt-Datei ist angehängt. Da sie ohne weiteres Abgebildet wird gehe ich nicht davon aus dass sie ein Problem darstellt.
Nach dem compilieren wird das Diagramm dargestellt. Ich erhalte jedoch folgende Fehlermeldung:
Package tikz Error: Sorry, the System call 'pdflatex -alt-on-error - interaction=batchmode - jobname "Plots/Cache/figure1"
"\def\tikzexternalrealjob{tests}\Input{tests}"' did NOT result in a usable Output file 'Plots/Cache/figure1' expecte one of .pdf:.jpg:.jpeg:.png).
Please verify that you have enable System calls. for pdflatey, this is 'pdflatey -Shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed?
Error message can be found in 'Plots/Cache/figure1.log'. If you continue now, I'll try to typset the Picture.
Ich hätte gerne auch das .log-file angehängt aber in dem Ordner ist kein log-file. Was ich persönlich sehr seltsam finde.
Das einzige file das in dem Cache ordner liegt ist 'figure1.md5'
Kann mir jemand sagen woran das liegt? und noch besser wie ich das Problem gelöst bekomme?
Danke im voraus!!!
Grüsse
Xeres