Seite 1 von 1

Linien trotz only marks

Verfasst: Do 21. Feb 2013, 20:50
von lk
Hallo Leute,

ich kämpfe gerade das erste mal mit LaTeX und habe nun folgendes Problem:

Ich erstelle mit tikzpicture und einer externen .dat -Datei einen Plot, das klappt soweit auch, aber ich hab da jetzt Kurven und Punkte, ich brauche aber nur die Punkte. Habe dann only marks reingeschrieben aber nix passiert, alles gleich. :-(

Kennst das Problem jemand? Wie kann ich es lösen?
Danke schon mal!


Hier mein Code:

\begin{tikzpicture}
\begin{axis}[scale only axis, width=0.8\textwidth,height=0.2\textheight,
xtick={0,0.1,...,0.5}, %\empty,
% x tick label style={rotate=75},
% axis x line = bottom,
% axis y line =left,
ytick={0,0.2,...,1.4},
xlabel = $x_{1_{min}}$,
xmax=0.51,
xmin=0,
ylabel= $\tilde{\upomega}_{12}^{*}$,
ymax=1.31,
ymin=0
]
\addplot table [ only marks, mark=*, color=red, x={2par}, y={omega}]{omx1min214.dat};



\end{axis}
\end{tikzpicture}

Optionen richtig setzen

Verfasst: Do 21. Feb 2013, 22:21
von Stamm-
Die Optionen sind falsch gesetzt.
\addplot[only marks,mark=*,red] table[x=2par,y=omega] {omx1min214.dat}; 
Ungetestet in Ermangelung eines in sich geschlossenen Minimalbeispiels.

Verfasst: Fr 22. Feb 2013, 08:53
von Gast
Und bitte Code markieren wie das auch im jHinweis für Code in Beitrag mit Beispiel direkt über dem Nachrichten-Eingabefeld angegeben ist!

Verfasst: Mi 27. Feb 2013, 13:44
von lk
Vielen dank! Das hat wirklich super geklappt!