如何用數字顯示第四象限?

如何用數字顯示第四象限?

如何在 LaTeX 中顯示下面的圖片。我什至不知道如何正確描述我所看到的。請幫助我脫離痛苦!

在此輸入影像描述

答案1

matrix of math nodes這是使用from 的一種方法蒂克茲:

\documentclass[border=5mm,tikz]{standalone}
\usepackage{mwe}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}

    \begin{tikzpicture}[]
      \matrix (M)[matrix of math nodes,nodes in empty cells]{
           f & 0 & 1 & 2 & 3 &  \\
           0 & 0 & 0 & 1       \\
           1 & 3 & 0 & 2       \\
           2 &                 \\
           3 &                 \\
             &                 \\
       };
       \draw[->] (M-2-2.north west)-- ++(2,0) node[above right]{$x$};
       \draw[->] (M-2-2.north west)-- ++(0,-2) node[below left ]{$y$};
    \end{tikzpicture}

\end{document}

這會產生:

在此輸入影像描述

相關內容