58 lines
2.2 KiB
TeX
58 lines
2.2 KiB
TeX
\documentclass{article}
|
|
\usepackage{tikz}
|
|
\usepackage{verbatim}
|
|
|
|
\begin{comment}
|
|
:Title: Intersecting lines
|
|
:Tags: Axes, Basics, Coordinate systems
|
|
|
|
An example of using the intersection coordinate systems. Both the ``intersection`` and
|
|
``perpendicular`` coordinate system are used. The latter is a special case of the former,
|
|
but has the shorter and more convenient ``-|`` and ``|-`` syntax.
|
|
|
|
\end{comment}
|
|
|
|
\begin{document}
|
|
|
|
\begin{tikzpicture}[scale=1]
|
|
% Zeichne Grid
|
|
\draw[step=0.1, color=lightgray] (-3,-3) grid(4,3.5);
|
|
% Draw axes
|
|
%\draw [<->] (-3,3) node (yaxis) [above] {$y$}|- (3,-3) node (xaxis) [right] {$x$};
|
|
|
|
\draw[style=-latex] (-4,0) -- (4,0) node[right] {$x$};
|
|
|
|
\foreach \x in {-3,-2,-1,1,2,3}
|
|
\draw (\x cm,1pt) -- (\x cm,-1pt) node[anchor=north] {$\x$};
|
|
|
|
\draw[style=-latex] (0,-4) -- (0,4) node[above] {$y$};
|
|
|
|
\foreach \y/\ytext in {-3,-2,-1,1,2,3}
|
|
\draw (1pt,\y cm) -- (-3pt,\y cm) node[anchor=east] {$\ytext$};
|
|
|
|
|
|
\definecolor{myblue}{HTML}{92dcec}
|
|
\definecolor{myred}{HTML}{FF6B6B}
|
|
\definecolor{html001}{HTML}{EBFF6B}
|
|
\begin{tikzpicture}
|
|
|
|
%\draw[fill=myblue, thick] (0,0) -- (0:3cm) arc (0:35:2cm);
|
|
% \draw[fill=myred, thick] (1,0) -- (0:2cm) arc (0:60:2cm);
|
|
%\draw[fill=html001, thick] (0,1) -- (0:2cm) arc (0:45:2cm);
|
|
|
|
%%\draw (3mm,0mm) arc (0:30:3mm); \draw (x,y) arc (Winkelbeginn:Winkelende:Radius)
|
|
%\draw (0,0) -- (0:2cm) arc (0:350:2cm);
|
|
%\shadedraw[left color=gray,right color=green, draw=green!50!black] (0,0) -- (28mm,0mm) arc (0:30:28mm) -- cycle;
|
|
%\shadedraw[left color=yellow,right color=red, draw=red!50!yellow] (0,0) -- (38mm,10mm) arc (0:45:38mm) -- cycle;
|
|
%\draw[fill=myblue, thick] (0,1cm) -- (0:2cm) arc (0:35:2cm);
|
|
%\draw (0,0) -- (90:1cm) arc (90:360:1cm) arc (0:30:1cm) -- cycle;
|
|
%\filldraw[fill=green!20!white, draw=green!50!black](0,0) -- (-3mm,0mm) arc (0:30:-3mm) -- cycle;
|
|
%\draw (60:5pt) -- +(30:1cm) arc (30:90:1cm) -- cycle;
|
|
% \draw [->] (0,0) arc (160:30:10mm);
|
|
\begin{scope}[rotate=60, color=blue]\draw (0,0) -- (0:1cm) arc (-60:120:0.5cm) -- cycle;
|
|
\end{scope}
|
|
\end{tikzpicture}
|
|
|
|
\end{tikzpicture}
|
|
\end{document}
|