- Open the Latex editor
- Type this following latex code in your Latex editor:
% !TEX TS-program=pdflatex
% !TEX encoding=utf-8
\documentclass[12pt,a4paper,titlepage]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fouriernc}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{0.25pt}
\author{private course and after school tutor}
\begin{document}
%----------------------------
% Title
%----------------------------
\begin{preview}
\Huge{Cartesian Coordinate}
\end{preview}
%----------------------------
% Step 1
%----------------------------
\begin{tikzpicture}[->]
\draw[help lines,opacity=.25] (-12,-12) grid (12,12);
% draw axes label
\foreach \i in {1, ..., 10} \draw(\i,2.5pt) -- +(0,-5pt) node [anchor=north, font=\bfseries] {\large{$\i$}} (-\i,2.5pt) -- +(0,-5pt) node [anchor=north, font=\bfseries] {\large{$-\i$}} (2.5pt,\i) -- + (-5pt,0) node [anchor=east, font=\bfseries] {\large{$\i$}} (2.5pt,-\i) -- + (-5pt,0) node [anchor=east, font=\bfseries] {\large{$-\i$}};
% axes line / horizontal line
\draw[latex->,thick,font=\bfseries] (-10,0) -- (10,0) node [anchor=south,above] {\huge{$\mathbf{x}$}};
% ordinat line / vertical line
\draw[latex->,thick] (0,-10) -- (0,10) node [anchor=west] {\huge{}};
\end{tikzpicture}
\end{document} - save file as coordinateCartesian1.tex
- Typeset or Build.
Output
Notes To see the more clear picture, click on the picture.
Tidak ada komentar:
Posting Komentar