See what i made in below example.
You can observe that in my graph there are six nodes.
Now my question is How can i put all this nodes manually without using \foreach.
Because in graph some nodes are not properly arranged.
Here is my MWE:
\documentclass[12pt, a4paper]{article}
\usepackage[a4paper,top=1 in,bottom=1 in,left=0.7 in,right=0.7 in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\draw[thick,latex-latex] (-8,0) -- (8,0)node[right]{$x$};
\draw[thick,latex-latex] (0,-8) -- (0,8)node[above]{$y$};
\node at (-0.3,-0.3) {O};
\foreach \x/\l in {-7/-7,-6/-6,-5/-5,-4/-4,-3/-3,-2/-2,-1/-1,1/1,2/2,3/3,4/4,5/5,6/6,7/7}{
\node[fill,circle,inner sep=1.5pt,label=below:$\l$] at (\x,0) {};
\node[fill,circle,inner sep=1.5pt,label=left:$\l$] at (0,\x) {};
}
\draw[thick,stealth-stealth, shorten >= -1cm, shorten <= -1cm,name path =b ](-7,5) --(0,6)-- (7,7);
\draw[thick,stealth-stealth, shorten >= -2cm, shorten <= -2cm](0,-2)-- (3, -1) -- (6,0) ;
\foreach \x/\y/\name in {0/6/,-7/5/,7/7/}{
\node[fill,circle,inner sep=2.5pt,label={[inner sep=2pt]above right:\name($\x, \y$)}] at (\x,\y) {};
};
\foreach \x/\y/\name in {0/-2/,3/-1/,6/0/}{
\node[fill,circle,inner sep=2.5pt,label={[inner sep=12pt]below right:\name($\x, \y$)}] at (\x,\y) {};
};
\end{tikzpicture}
\end{document}
\node[fill,circle,inner sep=2.5pt,label={(2, 3)}] at (2,3) {};– Jérôme Dequeker Feb 02 '16 at 07:24