Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 3

17 Aug '19, 11:59

cis's gravatar image

cis
9.6k104461491

TikZ: Bahn eines Punktes und Koordinatenliste

Mir geht es darum die Bahn eines Punktes in Momentaufnahmen aufzuzeichnen und die *Bahn* anhand einer Koordinatenliste *einzuzeichnen*. Ich erhalte die Punkte, aber keine Bahn. Dabei habe ich für die Liste diese Methode verwendet: https://texwelt.de/wissen/fragen/25323/tikz-variablen-ausdruck-mit-punktkoordinaten-plotten wobei ich `\protected@xdef` zu `\xdef` ändern musste. Irgendetwas scheint nicht zu stimmen. Wo liegt mein Fehler? [![alt text][1]][1] \documentclass[margin=5pt, tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{intersections} \usepackage{amsmath, amssymb} \begin{document} \newcommand{\List}{}% reserve name \def\Range{0,20,40,60} \foreach \w in \Range{%%%%%%%%%%%%%%% \pgfmathsetmacro\Winkel{\w} % \begin{tikzpicture}[] \coordinate[] (M) at (0,0); \draw[] (M) circle[radius=3]; \draw[name path=kreis] (M) circle[radius=1.4]; \draw[name path=zeiger] (M) -- (90-\Winkel:3); % Create List of Coordinates \let\List=\empty% create list \makeatletter %\foreach \t in \Range %{ \path[name intersections={of=kreis and zeiger, name=S}] ; \coordinate[label=left:$S_{\w}$] (X-\w) at (S-1); \pgfmathsetmacro\temp{"(X-\w)"}% \ifx\empty\List{} \xdef\List{\temp}% \else \xdef\List{\List \temp}% \fi %} \makeatother \draw[red] plot[mark=*] coordinates{\List}; \node[anchor=north west, text width=6 cm] at (-3,-3){\List}; \end{tikzpicture} }%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_410.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

17 Aug '19, 11:57

cis's gravatar image

cis
9.6k104461491

TikZ: Bahn eines Punktes und Koordinatenliste

Mir geht es darum die Bahn eines Punktes in Momentaufnahmen aufzuzeichnen und die Bahn *Bahn* anhand einer Koordinatenliste einzuzeichnen. *einzuzeichnen*. Ich erhalte die Punkte, aber keine Bahn. Dabei habe ich für die Liste Methode verwendet: https://texwelt.de/wissen/fragen/25323/tikz-variablen-ausdruck-mit-punktkoordinaten-plotten wobei ich `\protected@xdef` zu `\xdef` ändern musste. Irgendetwas scheint nicht zu stimmen. Wo liegt mein Fehler? [![alt text][1]][1] \documentclass[margin=5pt, tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{intersections} \usepackage{amsmath, amssymb} \begin{document} \newcommand{\List}{}% reserve name \def\Range{0,20,40,60} \foreach \w in \Range{%%%%%%%%%%%%%%% \pgfmathsetmacro\Winkel{\w} % \begin{tikzpicture}[] \coordinate[] (M) at (0,0); \draw[] (M) circle[radius=3]; \draw[name path=kreis] (M) circle[radius=1.4]; \draw[name path=zeiger] (M) -- (90-\Winkel:3); % Create List of Coordinates \let\List=\empty% create list \makeatletter %\foreach \t in \Range %{ \path[name intersections={of=kreis and zeiger, name=S}] ; \coordinate[label=left:$S_{\w}$] (X-\w) at (S-1); \pgfmathsetmacro\temp{"(X-\w)"}% \ifx\empty\List{} \xdef\List{\temp}% \else \xdef\List{\List \temp}% \fi %} \makeatother \draw[red] plot[mark=*] coordinates{\List}; \node[anchor=north west, text width=6 cm] at (-3,-3){\List}; \end{tikzpicture} }%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_410.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

17 Aug '19, 11:56

cis's gravatar image

cis
9.6k104461491