Jumat, 30 Agustus 2024

Draw A Plot In Latex 1

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}

draw a coordinate cartesian, x, y, coordination, graph, tex, tikz, document preparation system

Related Post

Tidak ada komentar:

Posting Komentar