% -------------------
% title
% -------------------
\begin{figure}
% -------------------
% step 1
% -------------------
\begin{figure}
\begin{tikzpicture}%[->]
%draw gridline
\draw[help lines,opacity=.25] (-5,-5) grid (5,5);
% -------------------
%draw 0,0 node
% -------------------
\draw (0,0) node [anchor=north east, font=\bfseries] {$0$};
% -------------------
% draw axes line
% -------------------
\draw[-latex,thick,font=\bfseries] (-4.5,0) -- (4.5,0) node [anchor=north] {\large{$\mathsf{sumbu\ x}$}};
\draw[-latex,thick] (0,-4) -- (0,4) node [anchor=west] {\large{$\mathsf{sumbu\ y}$}};
% -------------------
% draw axes label
% -------------------
\foreach \i in {1, ..., 3} \draw(\i,2.5pt) -- +(0,-5pt) node [anchor=north, font=\bfseries] {\large{$\i$}} (-\i,2.5pt) -- +(0,-5pt) node [anchor=north, font=\bfseries,fill=white] {\large{$-\i$}} (2.5pt,\i) -- + (-5pt,0) node [anchor=east, font=\bfseries] {\large{$\i$}} (2.5pt,-\i) -- + (-5pt,0) node [anchor=east, font=\bfseries, fill=white] {\large{$-\i$}};
\end{tikzpicture}
\end{figure}
\end{document}
- save file as koordinatKartesius1.tex
- Typeset or Build.
Tidak ada komentar:
Posting Komentar