von mango1234 » Do 15. Aug 2019, 16:27
hallo, ich habe drei Fragen:
1. wie kann ich das Innere des Gebiets färben und etwas reinschreiben?
2. wie kann ich die strichlierten Linien beschriften (also die Beschriftung sollte am Ende der Linie sein)?
3. Wie kann ich die Achsenbeschriftung dünner machen?
LG
\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\usepackage{pgfplots}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}[cross/.style={draw,
minimum size=2*(#1-1pt), circle, inner sep=0pt, outer sep=0pt}]
%Raster zeichnen
%\draw [color=gray!50] [step=5mm] (-.5,-.5) grid (3.5,3.5);
% Achsen zeichnen
\draw[->,thick] (0,0) -- (3.5,0) node[right] {$H_{1}$};
\draw[->,thick] (0,0) -- (0,3.5) node[above] {$H_{2}$};
% Achsen beschriften
\foreach \x in {0,1, 3/2, 2, 7/3, 3}
\draw (\x,-.1) -- (\x,.1) node[below=4pt] {$\scriptstyle\x$};
\foreach \y in {0,1, 3/2, 2, 3}
\draw (-.1,\y) -- (.1,\y) node[left=4pt] {$\scriptstyle\y$};
%Punkte einzeichnen:
\node [cross=2pt, fill] at (1,1) {};
\node [cross=1pt, fill] at (3/2, 1)(1) {};
\node [cross=1pt, fill] at (3/2, 3/2) (2){};
\node [cross=1pt, fill] at (7/3, 1) (3) {};
\node [cross=2pt, fill, label={$H(\sigma^{*})$}] at (3, 3) (4) {};
\node [cross=1pt, fill] at (0, 1) (5) {};
\node [cross=2pt, fill] at (0, 0) (6) {};
\node [cross=2pt, fill] at (2, 0) (7) {};
\node [cross=1pt, fill] at (3.5, 1) (8) {};
\node [cross=1pt, fill] at (3/2, 0) (9) {};
\node [cross=1pt, fill] at (3/2, 3.5) (10) {};
\draw [thick] (1) -- (2)
\draw [thick] (2) -- (4);
\draw [thick] (3) -- (4);
\draw [thick] (1) -- (3);
\draw [dashed] (5) -- (8);
\draw [dashed] (9) -- (10);
\end{tikzpicture}
\end{document}
hallo, ich habe drei Fragen:
1. wie kann ich das Innere des Gebiets färben und etwas reinschreiben?
2. wie kann ich die strichlierten Linien beschriften (also die Beschriftung sollte am Ende der Linie sein)?
3. Wie kann ich die Achsenbeschriftung dünner machen?
LG
[code]
\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\usepackage{pgfplots}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}[cross/.style={draw,
minimum size=2*(#1-1pt), circle, inner sep=0pt, outer sep=0pt}]
%Raster zeichnen
%\draw [color=gray!50] [step=5mm] (-.5,-.5) grid (3.5,3.5);
% Achsen zeichnen
\draw[->,thick] (0,0) -- (3.5,0) node[right] {$H_{1}$};
\draw[->,thick] (0,0) -- (0,3.5) node[above] {$H_{2}$};
% Achsen beschriften
\foreach \x in {0,1, 3/2, 2, 7/3, 3}
\draw (\x,-.1) -- (\x,.1) node[below=4pt] {$\scriptstyle\x$};
\foreach \y in {0,1, 3/2, 2, 3}
\draw (-.1,\y) -- (.1,\y) node[left=4pt] {$\scriptstyle\y$};
%Punkte einzeichnen:
\node [cross=2pt, fill] at (1,1) {};
\node [cross=1pt, fill] at (3/2, 1)(1) {};
\node [cross=1pt, fill] at (3/2, 3/2) (2){};
\node [cross=1pt, fill] at (7/3, 1) (3) {};
\node [cross=2pt, fill, label={$H(\sigma^{*})$}] at (3, 3) (4) {};
\node [cross=1pt, fill] at (0, 1) (5) {};
\node [cross=2pt, fill] at (0, 0) (6) {};
\node [cross=2pt, fill] at (2, 0) (7) {};
\node [cross=1pt, fill] at (3.5, 1) (8) {};
\node [cross=1pt, fill] at (3/2, 0) (9) {};
\node [cross=1pt, fill] at (3/2, 3.5) (10) {};
\draw [thick] (1) -- (2)
\draw [thick] (2) -- (4);
\draw [thick] (3) -- (4);
\draw [thick] (1) -- (3);
\draw [dashed] (5) -- (8);
\draw [dashed] (9) -- (10);
\end{tikzpicture}
\end{document}
[/code]