Sabtu, 30 November 2024

Draw y Ordinate In Latex

  • 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 2
    %----------------------------
    \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{}};
    % ordinat line / vertical line
    \draw[latex->,thick] (0,-10) -- (0,10) node [anchor=west] {\huge{$\mathbf{y}$}};
    \end{tikzpicture}
    \end{document}

  • save file as coordinateCartesian1a.tex
  • Typeset or Build.
  • Output

    y ordinate




Notes To see the more clear picture, click on the picture.




Bibliography

https://www.mathsisfun.com/
https://blogformathematics.blogspot.com/

y coordinate, cartesian coordinate, y axes

Related Post

Tidak ada komentar:

Posting Komentar