I need to draw points coordinates in a graph. In my case, the problem is that the values of the x-axis and y-axis of each point can be very large. That is why I need to edit the code below in order to be able to draw the 2D points even for large coordinates values.
For example the code below works well but only for small coordinates values, I need to use it for large coordinates values without increasing the graph. Let us consider a point A(300,200).
Any help will be very appreciated!
The code is:
\documentclass{report}
\usepackage{tikz}
%\usetikzlibrary{automata,topaths}% note neded for this.
\begin{document}
\begin{tikzpicture}[x=1cm,y=0.4cm]
\draw[latex-latex, thin, draw=gray] (-4,0)--(4,0) node [right] {$x$}; % l'axe des abscisses
\draw[latex-latex, thin, draw=gray] (0,-5)--(0,5) node [above] {$y$}; % l'axe des ordonnées
\foreach \Point in {(-2,1.5), (-1,1), (-2,3), (-1,2.5), (1,3)}{
\node at \Point {\textbullet};
}
\foreach \Point in {(2,-1.5), (1,-1), (2,-3), (1,-2.5), (1,-3)}{
\node at \Point {$\circ$};
}
% to ensure that the points are being properly centered:
\draw [dotted, gray] (-4,-6) grid (5,5);
\end{tikzpicture}
\end{document}
pgfplots
? An example: tex.stackexchange.com/a/61322/1952