\documentclass[tikz,border=0.14mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) rectangle (2,2);
\draw[thick] (1-0.2,-0.5) node[anchor=north west] {x};
\draw[thick] (-0.5,1-0.3) node[anchor=south east] {y};
\foreach \x in {0,1/4,1/2,3/4,1,5/4,3/2,7/4,2}
\draw (\x cm,0.25pt) -- (\x cm,-0.25pt) node[anchor=north] {$\x$};
\foreach \y in {0,1/4,1/2,3/4,1,5/4,3/2,7/4,2}
\draw (0.25pt,\y cm) -- (-0.25pt,\y cm) node[anchor=east] {$\y$};
\end{tikzpicture}