von Sick0 » Fr 21. Mai 2021, 19:45
Hallo liebes Forum,
ich bin leider ein blutiger Anfänger was LateX/TikZ angeht. Ich habe jedoch morgen eine Deadline für eine Hausarbeit, die in LateX geschrieben werden muss, also hoffe ich auf eure Hilfe . Hier meine Fragen:
Wie verändere ich die Größe meines Diagramms, ohne die Größe der Beschriftung zu ändern?
Wie verändere ich die dicke der Linien im Histogramm?
Hier der Code zu meinem Histogramm:
\pgfplotstableread{
Answer Count
no 7
yes 3
undecided 1
maybe 5
same 5
}\results
\pgfplotstableset{
create on use/Cumulated/.style={
create col/expr={
\pgfmathaccuma + \thisrow{Count}
}
}
}
\begin{center}
\begin{tikzpicture}[scale=1]
\begin{axis}[
ybar, ymin=0,
ylabel={\#participants},
symbolic x coords={no,yes,undecided,maybe,same},
xlabel={\#participants},
xtick=data
]
\addplot [fill=gray!30, nodes near coords] table {\results};
\addplot [sharp plot,mark=*] table [y=Cumulated] {\results};
\end{axis}
\end{tikzpicture}
\end{center}
Vielen Dank!
- Dateianhänge
-
Hallo liebes Forum,
ich bin leider ein blutiger Anfänger was LateX/TikZ angeht. Ich habe jedoch morgen eine Deadline für eine Hausarbeit, die in LateX geschrieben werden muss, also hoffe ich auf eure Hilfe :D. Hier meine Fragen:
Wie verändere ich die Größe meines Diagramms, ohne die Größe der Beschriftung zu ändern?
Wie verändere ich die dicke der Linien im Histogramm?
Hier der Code zu meinem Histogramm:
[code]\pgfplotstableread{
Answer Count
no 7
yes 3
undecided 1
maybe 5
same 5
}\results
\pgfplotstableset{
create on use/Cumulated/.style={
create col/expr={
\pgfmathaccuma + \thisrow{Count}
}
}
}
\begin{center}
\begin{tikzpicture}[scale=1]
\begin{axis}[
ybar, ymin=0,
ylabel={\#participants},
symbolic x coords={no,yes,undecided,maybe,same},
xlabel={\#participants},
xtick=data
]
\addplot [fill=gray!30, nodes near coords] table {\results};
\addplot [sharp plot,mark=*] table [y=Cumulated] {\results};
\end{axis}
\end{tikzpicture}
\end{center}[/code]
Vielen Dank!