Seite 1 von 1

TikZ: Knoten als schwarze Punkte und Beschriftung darunter

Verfasst: Mo 15. Feb 2016, 12:13
von BrokiX
Hey,

ich bin auf einer Suche nach einer Möglichkeit, um die Knoten einfach als schwarzen Punkt dazustellen und die Beschriftung darunter einzufügen. Ich habe das bis auf die schwarzen Punkte (sollten direkt über t,t+1,...,T-1,T) wie folgt gelöst bisher:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}
\tikzset{
  state/.style={minimum size=4ex},
  arrow/.style={-latex, shorten >=1ex, shorten <=1ex}}
\begin{document}
\begin{tikzpicture}[node distance=5em]
  \node [state] (1) {t};
  \node [state, right=of 1] (2) {t+1};
  \node [state, right=of 2] (3) {\ldots};
  \node [state, right=of 3] (4) {T-1};
  \node [state, right=of 4] (5) {T};
  \draw [arrow, bend left]  (1) to (5);
  % \draw [arrow, bend right] (1) to (2);
  \draw [arrow, bend left]  (2) to (5);
\end{tikzpicture}
\end{document}

Verfasst: Mo 15. Feb 2016, 13:04
von esdd
Wenn ich Dich richtig verstehe, suchst Du etwas wie

Bild

Code:
\documentclass{article} 
\usepackage{tikz} 
\usetikzlibrary{positioning} 
\tikzset{ 
   state/.style={circle,fill,inner sep=1pt,label=below:#1\strut},
   arrow/.style={-latex, shorten >=1ex, shorten <=1ex}} 
\begin{document} 
\begin{tikzpicture}[node distance=5em] 
   \node [state=t] (1){}; 
   \node [state=t+1, right=of 1] (2) {}; 
   \node [state=\ldots, right=of 2] (3) {}; 
   \node [state=T-1, right=of 3] (4) {}; 
   \node [state=T, right=of 4] (5) {}; 
   \draw [arrow, bend left]  (1) to (5); 
   \draw [arrow, bend left]  (2) to (5); 
\end{tikzpicture} 
\end{document} 

Verfasst: Mo 15. Feb 2016, 14:11
von BrokiX
Genau, danke!