von GerDominator » Sa 1. Nov 2014, 17:31
Hallo Profis,
habe meine letzten drei Stunden verzweifelt damit verbracht zwei mit pgf/tikz programmierten Graphen aus Geogebra in latex übereinander zu schieben.
Hintergrund ist, dass ich die beiden Koordinatensysteme übereinander legen möchte. Die Y-Achse mit der dargestellten Leistung kann ich schon verschieben, allerdings ist nach dem overlay das untere tikzpicture verschoben.
Wäre soo dankbar wenn ihr mir helfen könnt

Ich hoffe ihr wisst überhaupt was ich meine.
Wollte ein Screenshot hochladen aber funktioniert weder mit .png noch mit .jpg
\documentclass[a4paper,10pt]{scrartcl}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{figure}
\definecolor{qqqqff}{rgb}{0,0,1}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.13cm,y=7.0cm]
\draw[->,color=black] (-3,0) -- (65,0);
\foreach \x in {,5,10,15,20,25,30,35,40,45,50,55,60}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[color=black] (61.094,0.0106) node [anchor=south west] { I / mA};
\draw[->,color=black] (0,-0.1) -- (0,1.1);
\foreach \y in {0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\draw[color=black] (0.4439,1.0468) node [anchor=west] { U / V};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-3,-0.1) rectangle (65,1.1);
\draw [line width=1.6pt] (0,0.979)-- (15.36,0.944);
\draw [line width=1.6pt] (15.36,0.944)-- (30.4,0.898);
\draw [line width=1.6pt] (30.4,0.898)-- (35.24,0.878);
\draw [line width=1.6pt] (35.24,0.878)-- (39.26,0.859);
\draw [line width=1.6pt] (39.26,0.859)-- (42.42,0.839);
\draw [line width=1.6pt] (42.42,0.839)-- (46.3,0.808);
\draw [line width=1.6pt] (46.3,0.808)-- (48.14,0.786);
\draw [line width=1.6pt] (49.27,0.787)-- (48.14,0.786);
\draw [line width=1.6pt] (49.27,0.787)-- (50.92,0.772);
\draw [line width=1.6pt] (50.92,0.772)-- (53.57,0.734);
\draw [line width=1.6pt] (54.05,0.724)-- (55.16,0.652);
\draw [line width=1.6pt] (55.16,0.652)-- (57.17,0.434);
\draw [line width=1.6pt] (57.45,0.111)-- (57.17,0.434);
\begin{scriptsize}
\fill [color=qqqqff] (0,0.979) circle (2pt);
\fill [color=qqqqff] (15.36,0.944) circle (2pt);
\fill [color=qqqqff] (30.4,0.898) circle (2pt);
\fill [color=qqqqff] (35.24,0.878) circle (2pt);
\fill [color=qqqqff] (39.26,0.859) circle (2pt);
\fill [color=qqqqff] (42.42,0.839) circle (2pt);
\fill [color=qqqqff] (45.12,0.815) circle (2pt);
\fill [color=qqqqff] (46.3,0.808) circle (2pt);
\fill [color=qqqqff] (48.14,0.786) circle (2pt);
\fill [color=qqqqff] (55.16,0.652) circle (2pt);
\fill [color=qqqqff] (57.17,0.434) circle (2pt);
\fill [color=qqqqff] (57.45,0.111) circle (2pt);
\fill [color=qqqqff] (49.27,0.787) circle (2pt);
\fill [color=qqqqff] (50.92,0.772) circle (2pt);
\fill [color=qqqqff] (52.57,0.75) circle (2pt);
\fill [color=qqqqff] (53.57,0.734) circle (2pt);
\fill [color=qqqqff] (54.05,0.724) circle (2pt);
\end{scriptsize}
\end{tikzpicture}
%\definecolor{qqqqff}{rgb}{0,0,1}
\begin{tikzpicture}[overlay,line cap=round,line join=round,>=triangle 45,x=0.13cm,y=0.1866cm]
\draw[->,color=black] (-3,0) -- (65,0);
\foreach \x in {,5,10,15,20,25,30,35,40,45,50,55,60}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[color=black] (61.094,0.3991) node [anchor=south west] { I / mA};
\draw[->,color=black] (0,-2) -- (0,43);
\foreach \y in {,5,10,15,20,25,30,35,40}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\draw[color=black] (0.4439,41.0044) node [anchor=west] { P / mW};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-3,-2) rectangle (65,43);
\draw [line width=1.6pt,color=qqqqff] (0,0)-- (15.36,14.5);
\draw [line width=1.6pt,color=qqqqff] (15.36,14.5)-- (30.4,27.3);
\draw [line width=1.6pt,color=qqqqff] (30.4,27.3)-- (35.24,30.941);
\draw [line width=1.6pt,color=qqqqff] (35.24,30.941)-- (39.26,33.724);
\draw [line width=1.6pt,color=qqqqff] (39.26,33.724)-- (42.42,35.59);
\draw [line width=1.6pt,color=qqqqff] (42.42,35.59)-- (46.3,37.41);
\draw [line width=1.6pt,color=qqqqff] (46.3,37.41)-- (48.14,37.838);
\draw [line width=1.6pt,color=qqqqff] (49.27,38.775)-- (48.14,37.838);
\draw [line width=1.6pt,color=qqqqff] (49.27,38.775)-- (50.92,39.31);
\draw [line width=1.6pt,color=qqqqff] (50.92,39.31)-- (53.57,39.32);
\draw [line width=1.6pt,color=qqqqff] (54.05,39.132)-- (55.61,36.258);
\draw [line width=1.6pt,color=qqqqff] (55.61,36.258)-- (57.17,24.812);
\draw [line width=1.6pt,color=qqqqff] (57.45,6.377)-- (57.17,24.812);
\draw (48.577,33.8204) node[anchor=north west] {MPP};
\draw [->] (50.1749,34.2195) -- (52.57,39.428);
\begin{scriptsize}
\fill [color=qqqqff] (0,0) circle (1.5pt);
\fill [color=qqqqff] (15.36,14.5) circle (1.5pt);
\fill [color=qqqqff] (30.4,27.3) circle (1.5pt);
\fill [color=qqqqff] (35.24,30.941) circle (1.5pt);
\fill [color=qqqqff] (39.26,33.724) circle (1.5pt);
\fill [color=qqqqff] (42.42,35.59) circle (1.5pt);
\fill [color=qqqqff] (45.12,36.773) circle (1.5pt);
\fill [color=qqqqff] (46.3,37.41) circle (1.5pt);
\fill [color=qqqqff] (48.14,37.838) circle (1.5pt);
\fill [color=qqqqff] (55.61,36.258) circle (1.5pt);
\fill [color=qqqqff] (57.17,24.812) circle (1.5pt);
\fill [color=qqqqff] (57.45,6.377) circle (1.5pt);
\fill [color=qqqqff] (49.27,38.775) circle (1.5pt);
\fill [color=qqqqff] (50.92,39.31) circle (1.5pt);
\fill [color=qqqqff] (52.57,39.428) circle (1.5pt);
\fill [color=qqqqff] (53.57,39.32) circle (1.5pt);
\fill [color=qqqqff] (54.05,39.132) circle (1.5pt);
\end{scriptsize}
\end{tikzpicture}
\end{figure}
\end{document}
Hallo Profis,
habe meine letzten drei Stunden verzweifelt damit verbracht zwei mit pgf/tikz programmierten Graphen aus Geogebra in latex übereinander zu schieben.
Hintergrund ist, dass ich die beiden Koordinatensysteme übereinander legen möchte. Die Y-Achse mit der dargestellten Leistung kann ich schon verschieben, allerdings ist nach dem overlay das untere tikzpicture verschoben.
Wäre soo dankbar wenn ihr mir helfen könnt :cry: Ich hoffe ihr wisst überhaupt was ich meine.
Wollte ein Screenshot hochladen aber funktioniert weder mit .png noch mit .jpg
[code]
\documentclass[a4paper,10pt]{scrartcl}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{figure}
\definecolor{qqqqff}{rgb}{0,0,1}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.13cm,y=7.0cm]
\draw[->,color=black] (-3,0) -- (65,0);
\foreach \x in {,5,10,15,20,25,30,35,40,45,50,55,60}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[color=black] (61.094,0.0106) node [anchor=south west] { I / mA};
\draw[->,color=black] (0,-0.1) -- (0,1.1);
\foreach \y in {0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\draw[color=black] (0.4439,1.0468) node [anchor=west] { U / V};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-3,-0.1) rectangle (65,1.1);
\draw [line width=1.6pt] (0,0.979)-- (15.36,0.944);
\draw [line width=1.6pt] (15.36,0.944)-- (30.4,0.898);
\draw [line width=1.6pt] (30.4,0.898)-- (35.24,0.878);
\draw [line width=1.6pt] (35.24,0.878)-- (39.26,0.859);
\draw [line width=1.6pt] (39.26,0.859)-- (42.42,0.839);
\draw [line width=1.6pt] (42.42,0.839)-- (46.3,0.808);
\draw [line width=1.6pt] (46.3,0.808)-- (48.14,0.786);
\draw [line width=1.6pt] (49.27,0.787)-- (48.14,0.786);
\draw [line width=1.6pt] (49.27,0.787)-- (50.92,0.772);
\draw [line width=1.6pt] (50.92,0.772)-- (53.57,0.734);
\draw [line width=1.6pt] (54.05,0.724)-- (55.16,0.652);
\draw [line width=1.6pt] (55.16,0.652)-- (57.17,0.434);
\draw [line width=1.6pt] (57.45,0.111)-- (57.17,0.434);
\begin{scriptsize}
\fill [color=qqqqff] (0,0.979) circle (2pt);
\fill [color=qqqqff] (15.36,0.944) circle (2pt);
\fill [color=qqqqff] (30.4,0.898) circle (2pt);
\fill [color=qqqqff] (35.24,0.878) circle (2pt);
\fill [color=qqqqff] (39.26,0.859) circle (2pt);
\fill [color=qqqqff] (42.42,0.839) circle (2pt);
\fill [color=qqqqff] (45.12,0.815) circle (2pt);
\fill [color=qqqqff] (46.3,0.808) circle (2pt);
\fill [color=qqqqff] (48.14,0.786) circle (2pt);
\fill [color=qqqqff] (55.16,0.652) circle (2pt);
\fill [color=qqqqff] (57.17,0.434) circle (2pt);
\fill [color=qqqqff] (57.45,0.111) circle (2pt);
\fill [color=qqqqff] (49.27,0.787) circle (2pt);
\fill [color=qqqqff] (50.92,0.772) circle (2pt);
\fill [color=qqqqff] (52.57,0.75) circle (2pt);
\fill [color=qqqqff] (53.57,0.734) circle (2pt);
\fill [color=qqqqff] (54.05,0.724) circle (2pt);
\end{scriptsize}
\end{tikzpicture}
%\definecolor{qqqqff}{rgb}{0,0,1}
\begin{tikzpicture}[overlay,line cap=round,line join=round,>=triangle 45,x=0.13cm,y=0.1866cm]
\draw[->,color=black] (-3,0) -- (65,0);
\foreach \x in {,5,10,15,20,25,30,35,40,45,50,55,60}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[color=black] (61.094,0.3991) node [anchor=south west] { I / mA};
\draw[->,color=black] (0,-2) -- (0,43);
\foreach \y in {,5,10,15,20,25,30,35,40}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\draw[color=black] (0.4439,41.0044) node [anchor=west] { P / mW};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-3,-2) rectangle (65,43);
\draw [line width=1.6pt,color=qqqqff] (0,0)-- (15.36,14.5);
\draw [line width=1.6pt,color=qqqqff] (15.36,14.5)-- (30.4,27.3);
\draw [line width=1.6pt,color=qqqqff] (30.4,27.3)-- (35.24,30.941);
\draw [line width=1.6pt,color=qqqqff] (35.24,30.941)-- (39.26,33.724);
\draw [line width=1.6pt,color=qqqqff] (39.26,33.724)-- (42.42,35.59);
\draw [line width=1.6pt,color=qqqqff] (42.42,35.59)-- (46.3,37.41);
\draw [line width=1.6pt,color=qqqqff] (46.3,37.41)-- (48.14,37.838);
\draw [line width=1.6pt,color=qqqqff] (49.27,38.775)-- (48.14,37.838);
\draw [line width=1.6pt,color=qqqqff] (49.27,38.775)-- (50.92,39.31);
\draw [line width=1.6pt,color=qqqqff] (50.92,39.31)-- (53.57,39.32);
\draw [line width=1.6pt,color=qqqqff] (54.05,39.132)-- (55.61,36.258);
\draw [line width=1.6pt,color=qqqqff] (55.61,36.258)-- (57.17,24.812);
\draw [line width=1.6pt,color=qqqqff] (57.45,6.377)-- (57.17,24.812);
\draw (48.577,33.8204) node[anchor=north west] {MPP};
\draw [->] (50.1749,34.2195) -- (52.57,39.428);
\begin{scriptsize}
\fill [color=qqqqff] (0,0) circle (1.5pt);
\fill [color=qqqqff] (15.36,14.5) circle (1.5pt);
\fill [color=qqqqff] (30.4,27.3) circle (1.5pt);
\fill [color=qqqqff] (35.24,30.941) circle (1.5pt);
\fill [color=qqqqff] (39.26,33.724) circle (1.5pt);
\fill [color=qqqqff] (42.42,35.59) circle (1.5pt);
\fill [color=qqqqff] (45.12,36.773) circle (1.5pt);
\fill [color=qqqqff] (46.3,37.41) circle (1.5pt);
\fill [color=qqqqff] (48.14,37.838) circle (1.5pt);
\fill [color=qqqqff] (55.61,36.258) circle (1.5pt);
\fill [color=qqqqff] (57.17,24.812) circle (1.5pt);
\fill [color=qqqqff] (57.45,6.377) circle (1.5pt);
\fill [color=qqqqff] (49.27,38.775) circle (1.5pt);
\fill [color=qqqqff] (50.92,39.31) circle (1.5pt);
\fill [color=qqqqff] (52.57,39.428) circle (1.5pt);
\fill [color=qqqqff] (53.57,39.32) circle (1.5pt);
\fill [color=qqqqff] (54.05,39.132) circle (1.5pt);
\end{scriptsize}
\end{tikzpicture}
\end{figure}
\end{document}
[/code]