Im trying to draw the following graph:
|x − 1| + |y − 1| ≤ 1
This is what I have:
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel={$y$}
]
\addplot {|x−1|+|y−1|≤1};
\end{axis}
\end{tikzpicture}
\end{document}
However this doesn't work. Would anyone be able to suggest why?
