Add this following latex package on the Latex preamble, before \begin{document} of Latex code:
\usepackage{tikz}
type this Latex code in your Latex editor, after \begin{document} and before \end{document} of Latex code:
\begin{tikzpicture}[scale=1.5]
% Draw the axes
\draw[->=Straight Barb, ultra thick](-0.5,0) -- (9,0); % Horizontal Line / x axes
\draw[->=Straight Barb, ultra thick](0, -0.5) -- (0,4); % Vertical Line / y axes
\end{tikzpicture}
for complete latex source code:
\documentclass[a4paper]{article}
\usepackage{tikz}
\begin{document}
\title{tikZ Plot 1}
\author{Course and Tutor Course}
\date{March 7, 2013}
\maketitle
\begin{tikzpicture}[scale=1.5]
% Draw the axes
\draw[->=Straight Barb, ultra thick](-0.5,0) -- (9,0); % Horizontal Line / x axes
\draw[->=Straight Barb, ultra thick](0, -0.5) -- (0,4); % Vertical Line / y axes
\end{tikzpicture}
\end{document}
Save file as tikzPlot1a.tex
To see the output, look at the below picture:
draw a coordinate cartesian, x, y, coordination, graph, tex, tikz, document preparation system
Tidak ada komentar:
Posting Komentar