如何在乳胶中绘制二维平面图

如何在乳胶中绘制二维平面图

在此处输入图片描述

我想绘制这幅图。我对 LaTex 和 tikz 还不太熟悉,无法真正理解这一点。我希望有人能帮助我。

答案1

在此处输入图片描述

\documentclass[border=2pt]{standalone}
\usepackage{amssymb}
\usepackage{tikz}
\newcommand\set[1]{\{#1\}}
\begin{document}
\begin{tikzpicture}[>=stealth]
  \draw[->] % x axis
    (-2,0) -- (3,0) node[right]{$\mathbb{R}\times\set{0}$};
  \draw[->] % y axis
    (0,-1) -- (0,3) node[above]{$\set{0}\times\mathbb{R}$};
  \draw % ticks
    (1,-0.1) node[below]{$(1,0)$} -- +(0,0.2) % relative coordinate, added to (1,-0.1)
    (-0.1,1) node[left]{$i=(0,1)$} -- + (0.2,0);  relative coordinate, added to (-0.1,1)
  \draw[dashed] % dashed lines 
    (2.5,0) node[below]{$(x,0)$} --
    (2.5,2.5) node{$\bullet$} node[above right]{$(x,y)$} --
    (0,2.5) node[left]{$(0,y)$};
\end{tikzpicture}
\end{document}

相关内容