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

03 Jun '21, 10:45

coversin's gravatar image

coversin
9127

Die Beschriftung soll also einheitlich bei 60% von 4.6=yUse erscheinen; dann musst Du die `pos` für die anderen y eben ausrechnen: \pgfmathsetmacro\yUse{4.6} \pgfmathsetmacro\Tpos{0.6*\yUse/\y} \path (\x,0) -- (\x,\y) node (h) [pos=\Tpos] {~$T_\i$}; Damit: [![alt text][1]][1] \documentclass{scrarticle} \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{arrows.meta} \begin{document} \begin{figure}[h] \begin{tikzpicture}[>=Stealth] % Koordinatensystem \draw[->,>=Stealth,thick] (0,0) -- (12.5,0) node[below=0.2] {x}; \draw[->,thick] (0,0) -- (0,6) node[below left=0.3,anchor=east] {y}; \pgfmathsetmacro\yUse{4.6} \begin{scope}[ultra thin,every edge/.append style={->}] \foreach [count=\i] \x/\y in { 0.2/5, 2.7/4.6, 5.2/3.7, 7.7/3.4, 10.2/4.4 }{ \pgfmathsetmacro\Tpos{0.6*\yUse/\y} \path (\x,0) -- (\x,\y) node (h) [pos=\Tpos] {~$T_\i$}; \path (h) edge (\x,0) edge (\x,\y); \node[rotate=-0, anchor=north \node[anchor=north west, font=\footnotesize, red] at (\x,0.9*\Tpos*\y) {(\Tpos)}; % zur Anzeige } \end{scope} \end{tikzpicture} \end{figure} \end{document} [1]: https://texwelt.de/upfiles/5555555555555_6.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 5

03 Jun '21, 10:32

coversin's gravatar image

coversin
9127

Die Beschriftung soll also einheitlich bei 60% von yUse=4.6 4.6=yUse erscheinen; dann musst Du die `pos` für die anderen y eben ausrechnen: \pgfmathsetmacro\yUse{4.6} \pgfmathsetmacro\Tpos{0.6*\yUse/\y} \path (\x,0) -- (\x,\y) node (h) [pos=\Tpos] {~$T_\i$}; Damit: [![alt text][1]][1] \documentclass{scrarticle} \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{arrows.meta} \begin{document} \begin{figure}[h] \begin{tikzpicture}[>=Stealth] % Koordinatensystem \draw[->,>=Stealth,thick] (0,0) -- (12.5,0) node[below=0.2] {x}; \draw[->,thick] (0,0) -- (0,6) node[below left=0.3,anchor=east] {y}; \pgfmathsetmacro\yUse{4.6} \begin{scope}[ultra thin,every edge/.append style={->}] \foreach [count=\i] \x/\y in { 0.2/5, 2.7/4.6, 5.2/3.7, 7.7/3.4, 10.2/4.4 }{ \pgfmathsetmacro\Tpos{0.6*\yUse/\y} \path (\x,0) -- (\x,\y) node (h) [pos=\Tpos] {~$T_\i$}; \path (h) edge (\x,0) edge (\x,\y); \node[rotate=-0, anchor=north west, font=\footnotesize, red] at (\x,0.9*\Tpos*\y) {(\Tpos)}; % zur Anzeige } \end{scope} \end{tikzpicture} \end{figure} \end{document} [1]: https://texwelt.de/upfiles/5555555555555_6.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 4

03 Jun '21, 10:30

coversin's gravatar image

coversin
9127

Klicke auf Einblenden/Ausblenden von Überarbeitungen 3

03 Jun '21, 10:29

coversin's gravatar image

coversin
9127

Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

03 Jun '21, 10:27

coversin's gravatar image

coversin
9127

Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

03 Jun '21, 10:26

coversin's gravatar image

coversin
9127

Willkommen, erstes Mal hier? Schau mal unter FAQ!

×