von ElGasto » Di 11. Jun 2013, 18:15
Hier ist noch ein Minimalbeispiel. Der gesamte Code wurde von Gnuplot erstellt, dabei wird wie gesagt, das Paket "gnuplot-lua-tikz" nicht gefunden. Andere Pakete werden bei erstmaliger Verwendung einfach automatisch von MikTex heruntergeladen. Mit dem Paket "tikz" hat es auch nicht geklappt.
\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8x]{inputenc}
\usepackage{gnuplot-lua-tikz}
\pagestyle{empty}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{\gpbboxborder}
\begin{document}
\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 4.6p0 (Lua 5.1; terminal rev. 99, script rev. 100)
%% 11.06.2013 18:07:33
\gpsolidlines
\path (0.000,0.000) rectangle (12.500,8.750);
\gpcolor{color=gp lt color border}
\gpsetlinetype{gp lt border}
\gpsetlinewidth{3.00}
\draw[gp path] (1.320,0.985)--(1.545,0.985);
\draw[gp path] (11.947,0.985)--(11.722,0.985);
\node[gp node right] at (1.136,0.985) {-60};
\draw[gp path] (1.320,2.330)--(1.545,2.330);
\draw[gp path] (11.947,2.330)--(11.722,2.330);
\node[gp node right] at (1.136,2.330) {-50};
\draw[gp path] (1.320,3.674)--(1.545,3.674);
\draw[gp path] (11.947,3.674)--(11.722,3.674);
\node[gp node right] at (1.136,3.674) {-40};
\draw[gp path] (1.320,5.019)--(1.545,5.019);
\draw[gp path] (11.947,5.019)--(11.722,5.019);
\node[gp node right] at (1.136,5.019) {-30};
\draw[gp path] (1.320,6.364)--(1.545,6.364);
\draw[gp path] (11.947,6.364)--(11.722,6.364);
\node[gp node right] at (1.136,6.364) {-20};
\draw[gp path] (1.320,7.709)--(1.545,7.709);
\draw[gp path] (11.947,7.709)--(11.722,7.709);
\node[gp node right] at (1.136,7.709) {-10};
\draw[gp path] (2.383,0.985)--(2.383,1.210);
\draw[gp path] (2.383,8.381)--(2.383,8.156);
\node[gp node center] at (2.383,0.677) { 8};
\draw[gp path] (4.508,0.985)--(4.508,1.210);
\draw[gp path] (4.508,8.381)--(4.508,8.156);
\node[gp node center] at (4.508,0.677) { 10};
\draw[gp path] (6.634,0.985)--(6.634,1.210);
\draw[gp path] (6.634,8.381)--(6.634,8.156);
\node[gp node center] at (6.634,0.677) { 12};
\draw[gp path] (8.759,0.985)--(8.759,1.210);
\draw[gp path] (8.759,8.381)--(8.759,8.156);
\node[gp node center] at (8.759,0.677) { 14};
\draw[gp path] (10.884,0.985)--(10.884,1.210);
\draw[gp path] (10.884,8.381)--(10.884,8.156);
\node[gp node center] at (10.884,0.677) { 16};
\draw[gp path] (1.320,8.381)--(1.320,0.985)--(11.947,0.985)--(11.947,8.381)--cycle;
\node[gp node center,rotate=-270] at (0.246,4.683) {Y};
\node[gp node center] at (6.633,0.215) {X};
\draw[gp path] (1.320,8.381)--(1.320,0.985)--(11.947,0.985)--(11.947,8.381)--cycle;
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{1.320cm}{0.985cm}}{\pgfpoint{11.947cm}{8.381cm}}
\end{tikzpicture}
%% gnuplot variables
\end{document}
Hier ist noch ein Minimalbeispiel. Der gesamte Code wurde von Gnuplot erstellt, dabei wird wie gesagt, das Paket "gnuplot-lua-tikz" nicht gefunden. Andere Pakete werden bei erstmaliger Verwendung einfach automatisch von MikTex heruntergeladen. Mit dem Paket "tikz" hat es auch nicht geklappt.
[code]\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8x]{inputenc}
\usepackage{gnuplot-lua-tikz}
\pagestyle{empty}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{\gpbboxborder}
\begin{document}
\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 4.6p0 (Lua 5.1; terminal rev. 99, script rev. 100)
%% 11.06.2013 18:07:33
\gpsolidlines
\path (0.000,0.000) rectangle (12.500,8.750);
\gpcolor{color=gp lt color border}
\gpsetlinetype{gp lt border}
\gpsetlinewidth{3.00}
\draw[gp path] (1.320,0.985)--(1.545,0.985);
\draw[gp path] (11.947,0.985)--(11.722,0.985);
\node[gp node right] at (1.136,0.985) {-60};
\draw[gp path] (1.320,2.330)--(1.545,2.330);
\draw[gp path] (11.947,2.330)--(11.722,2.330);
\node[gp node right] at (1.136,2.330) {-50};
\draw[gp path] (1.320,3.674)--(1.545,3.674);
\draw[gp path] (11.947,3.674)--(11.722,3.674);
\node[gp node right] at (1.136,3.674) {-40};
\draw[gp path] (1.320,5.019)--(1.545,5.019);
\draw[gp path] (11.947,5.019)--(11.722,5.019);
\node[gp node right] at (1.136,5.019) {-30};
\draw[gp path] (1.320,6.364)--(1.545,6.364);
\draw[gp path] (11.947,6.364)--(11.722,6.364);
\node[gp node right] at (1.136,6.364) {-20};
\draw[gp path] (1.320,7.709)--(1.545,7.709);
\draw[gp path] (11.947,7.709)--(11.722,7.709);
\node[gp node right] at (1.136,7.709) {-10};
\draw[gp path] (2.383,0.985)--(2.383,1.210);
\draw[gp path] (2.383,8.381)--(2.383,8.156);
\node[gp node center] at (2.383,0.677) { 8};
\draw[gp path] (4.508,0.985)--(4.508,1.210);
\draw[gp path] (4.508,8.381)--(4.508,8.156);
\node[gp node center] at (4.508,0.677) { 10};
\draw[gp path] (6.634,0.985)--(6.634,1.210);
\draw[gp path] (6.634,8.381)--(6.634,8.156);
\node[gp node center] at (6.634,0.677) { 12};
\draw[gp path] (8.759,0.985)--(8.759,1.210);
\draw[gp path] (8.759,8.381)--(8.759,8.156);
\node[gp node center] at (8.759,0.677) { 14};
\draw[gp path] (10.884,0.985)--(10.884,1.210);
\draw[gp path] (10.884,8.381)--(10.884,8.156);
\node[gp node center] at (10.884,0.677) { 16};
\draw[gp path] (1.320,8.381)--(1.320,0.985)--(11.947,0.985)--(11.947,8.381)--cycle;
\node[gp node center,rotate=-270] at (0.246,4.683) {Y};
\node[gp node center] at (6.633,0.215) {X};
\draw[gp path] (1.320,8.381)--(1.320,0.985)--(11.947,0.985)--(11.947,8.381)--cycle;
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{1.320cm}{0.985cm}}{\pgfpoint{11.947cm}{8.381cm}}
\end{tikzpicture}
%% gnuplot variables
\end{document}[/code]