答案1
这非常简单,tikz
使用用于线条()和矩形( )的\draw
和命令,以及用于标签的几个节点和用于标题的环境。\fill
--
rectangle
figure
\documentclass{article}
\usepackage{tikz}
\usepackage{amsfonts} % needed for \mathbb
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\fill[lightgray] (0, 0) rectangle (6, 3);
\draw (0, 0) -- (6, 0);
\draw (3, -1) -- (3, 3);
\node[below right] at (3, 0) {0};
\node[above right] at (6, 3) {\(\mathbb{C}\)};
\end{tikzpicture}
\caption{Upper half plane}
\end{figure}
\end{document}
答案2
解决方案如下pstricks
:
\documentclass[11pt, svgnames]{article}
\usepackage{amsfonts}
\usepackage{pst-plot}
\begin{document}
\pagestyle{empty}
\begin{pspicture*}(-4.5,-1.5)(5,5)
\psframe*[linecolor=Gainsboro!50!Lavender](-4.5,0)(4.5,4.5)
\psaxes[linewidth=1pt, labels=none,ticks=none]{-}(0,0)(-4.5,-1.5)(4.5,4.5)
\uput[dr](0,0){$O$}\uput[ur](4.5,4.5){$\mathbb{C}$}
\end{pspicture*}
\end{document}
答案3
一种可能性是:
\documentclass{article}
\usepackage{amssymb}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[white!50!gray] (-4,0) rectangle (4,4);
\draw (-4.25,0)--(4.25,0);
\draw (0,-.25)--(0,4.25);
\node[below right] at (0,0) {$0$};
\node[right] at (4,4) {$\mathbb C$};
\end{tikzpicture}
\end{document}
它会给你这个: