# |x|+|y|=\sqrt(2) using tikz or pgfplots

I want to draw the rhombus $|x|+|y|=\sqrt{2}$ using tikz or pgfplot, but I am unable to do that.

I want to draw it, but despite several attempts, I am nowhere.

• For what purpose do you want to draw it? Just for the shape (this ca be achieved with a simple rotated square) or to use it in a function problem? Jul 11 at 12:49
• Remember to alway show your attempts when asking a question. It tells us valuable information about what it is going to be used for and the expected result. -also this site is about conceptual problems -not about doing others work. Jul 11 at 14:42
• Sure. By the way, why was I unable to write my question in proper LaTeX? Jul 11 at 14:47
• My understanding is that tex.stackexchange.com is special regarding LaTeX code. Here people often needs to show code, so the site does not render it. -also people here know what the code means, so no need to render it. Jul 11 at 15:21
• Regarding why LaTeX output isn't shown, see How do I get latex output to show up on tex.SE? (read the comments). Jul 11 at 15:42

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis equal]