von dima » Mi 26. Jan 2011, 23:30
Hallo zusammen,
in einem Diagramm stelle ich die Punkte aus einer Tabelle dar. (Siehe Beispiel: die schwarze Linie)
\begin{tikzpicture}
\pgfplotsset{profil_style/.append style={
extra x ticks={-20,-17.5,...,30},
extra x tick style={grid=major},
extra x tick labels=\empty
}}
\begin{axis}[profil_style]
\addplot+[style_1] table[x=Temperatur,y=Volume] {datei_1.dat};
\addplot+[style_2] table[x=Temperatur,y=Volume] {datei_2.dat};
\end{axis}
\end{tikzpicture}
Ich will das ganze Diagramm in 20 Intervalle mit 'extra x ticks' einteilen und für alle Intervalle bzw. Mitte der Intervallen die Punkte im Diagramm darstellen (rote Punkte [manuell erstellt]), die an der schwarzen Linie liegen sollen.
Dafür soll pgfplots-Paket diese Punkte anhand der schwarzen Punkte/Linie berechnen.
Ist es möglich überhaupt?
Beispiel:
http://dl.dropbox.com/u/4078517/Diagramm.png
Viele Grüße,
Dmitriy
Hallo zusammen,
in einem Diagramm stelle ich die Punkte aus einer Tabelle dar. (Siehe Beispiel: die schwarze Linie)
[code]
\begin{tikzpicture}
\pgfplotsset{profil_style/.append style={
extra x ticks={-20,-17.5,...,30},
extra x tick style={grid=major},
extra x tick labels=\empty
}}
\begin{axis}[profil_style]
\addplot+[style_1] table[x=Temperatur,y=Volume] {datei_1.dat};
\addplot+[style_2] table[x=Temperatur,y=Volume] {datei_2.dat};
\end{axis}
\end{tikzpicture}
[/code]
Ich will das ganze Diagramm in 20 Intervalle mit 'extra x ticks' einteilen und für alle Intervalle bzw. Mitte der Intervallen die Punkte im Diagramm darstellen (rote Punkte [manuell erstellt]), die an der schwarzen Linie liegen sollen.
Dafür soll pgfplots-Paket diese Punkte anhand der schwarzen Punkte/Linie berechnen.
Ist es möglich überhaupt?
Beispiel:
http://dl.dropbox.com/u/4078517/Diagramm.png
Viele Grüße,
Dmitriy