在 latex 中绘制数学分析图形

在 latex 中绘制数学分析图形

请问是否可以在latex中绘制以下图形:

在此处输入图片描述

对于第一幅图,我想要一个典型的实分析图。对于其他三幅图,我想画一个圆柱体,并带有正方形和菱形部分……

使用乳胶可以实现这一点吗?

参考

为了我自己的参考,我在这里保存了一些评论中引用的 tikz 示例:

http://www.texample.net/tikz/examples/

答案1

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\tdplotsetmaincoords{0}{0}
\begin{document}

\begin{tikzpicture}[thick]
 \draw[-latex](-1,0)--(6,0);
 \draw[-latex](0,-1)--(0,4);
 \coordinate (O) at (0,0);
 \coordinate (lb) at (1,1);
 \coordinate (tr) at (5,3);
 \draw (lb) rectangle (tr);
 \coordinate (x) at (barycentric cs:lb=1,tr=1);
 \draw[fill] (x) circle (2pt);
 \draw[dashed] (lb) -- (O-|lb) node[below] {$t_0-a$};
 \draw[dashed] (lb-|tr) -- (O-|tr) node[below] {$t_0+a$};
 \draw[dashed] (lb) -- (O|-lb) node[left] {$x_0-b$};
 \draw[dashed] (lb|-tr) -- (O|-tr) node[left] {$x_0+b$};
 \draw[dashed] (lb-|x) -- (O-|x) node[below] {$t_0$};
 \draw[dashed] (lb|-x) -- (O|-x) node[left] {$x_0$};
\end{tikzpicture}

\begin{tikzpicture}[thick]
\tdplotsetrotatedcoords{0}{70}{0}
\begin{scope}[tdplot_rotated_coords]
\foreach \X in {0,3,6}
{
\ifnum\X=0
\draw (0,0,\X) circle (1);
\else
\draw (0,-1,\X) arc[radius=1,start angle=-90,end angle=90];
\draw[dashed] (0,-1,\X) arc[radius=1,start angle=-90,end angle=-270];
\fi
}
\draw (0,1,0) -- (0,1,6);
\draw (0,-1,0) -- (0,-1,6);
\end{scope}
\end{tikzpicture}


\begin{tikzpicture}[thick]
\tdplotsetrotatedcoords{0}{70}{-20}
\begin{scope}[tdplot_rotated_coords]
\foreach \X in {0,3,6}
{\ifnum\X=0
\draw (-1.5,-1,\X) -- (-1.5,1,\X) -- (1.5,1,\X) -- (1.5,-1,\X) -- cycle;
\else
\draw[dashed] (-1.5,1,\X) -- (-1.5,-1,\X) -- (1.5,-1,\X);
\draw (-1.5,1,\X) -- (1.5,1,\X) -- (1.5,-1,\X);
\fi
}
\draw[dashed] (-1.5,-1,0) -- (-1.5,-1,6);
\draw (-1.5,1,0) -- (-1.5,1,6);
\draw (1.5,-1,0) -- (1.5,-1,6);
\draw (1.5,1,0) -- (1.5,1,6);
\end{scope}
\end{tikzpicture}

\begin{tikzpicture}[thick]
\tdplotsetrotatedcoords{0}{110}{-70}
\begin{scope}[tdplot_rotated_coords]
\foreach \X in {0,3,6}
{\ifnum\X=0
\draw (-1.5,-1,\X) -- (-1.5,1,\X) -- (1.5,1,\X) -- (1.5,-1,\X) -- cycle;
\else
\draw[dashed] (-1.5,1,\X) -- (1.5,1,\X) -- (1.5,-1,\X);
\draw (-1.5,1,\X) -- (-1.5,-1,\X) -- (1.5,-1,\X);
\fi
}
\draw (-1.5,-1,0) -- (-1.5,-1,6);
\draw (-1.5,1,0) -- (-1.5,1,6);
\draw (1.5,-1,0) -- (1.5,-1,6);
\draw[dashed] (1.5,1,0) -- (1.5,1,6);
\end{scope}
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容