\node[anchor = north east] at (0, 0) {$ o $}; \node[anchor = north] at (5.5, 0) {$ x $}; \node[anchor = west] at (0, 5.5) {$ y $}; \foreach\x in {1, ..., 5} { \node[anchor = north] at (\x, 0) {$\x$}; \node[anchor = east] at (0, \x) {$\x$}; }
\node[anchor = north east] at (0, 0) {$ o $}; \node[anchor = north] at (5.5, 0) {$ x $}; \node[anchor = west] at (0, 5.5) {$ y $}; \foreach\x in {1, ..., 5} { \node[anchor = north] at (\x, 0) {$\x$}; \node[anchor = east] at (0, \x) {$\x$}; }
\node[anchor = north east] at (0, 0) {$ o $}; \node[anchor = north] at (5.5, 0) {$ x $}; \node[anchor = west] at (0, 5.5) {$ y $}; \foreach\x in {1, ..., 5} { \node[anchor = north] at (\x, 0) {$\x$}; \node[anchor = east] at (0, \x) {$\x$}; }