You can try using pgfplots
and tikz
. It's quite easy.
The figure might look something like this.
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{pgfplots}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [<->] (0,4) node[left]{$ \text{Im} (z) $} -- (0,0) -- (4,0) node[below]{$ \text{Re} (z) $};
\draw [->] (0,0) -- (3,3)node[above right]{$ z+\beta $};
\draw [->] (0,0) -- (1,2)node[left]{$ \beta $};
\draw [dashed] (0,0) -- (2,1)node[right]{$ z $};
\draw [->] (2,1) -- (3,3);
\draw [dashed] (1,2) -- (3,3);
\end{tikzpicture}
\end{document}
Here is one attempt using tikz:
The code:
\documentclass[border=5mm,tikz]{standalone}
\usepackage{mwe}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw(0,0)--(2,0)--(0,1)--(2,1)--(0,0);
\draw(0,3)--(2,3);
\draw[very thin, double distance=2pt](0.6,2.2)--(1.4,1.6);
\draw[very thin, double distance=2pt](0.6,1.6)--(1.4,2.2);
\foreach \y/\lab in {0/1,1/2,3/h} {
\filldraw(0,\y) circle[radius=2pt]node[left]{$v_{\lab}$};
}
\foreach \y/\lab in {0/n-h+1,3/n,-2/h+1} {
\filldraw(2,\y) circle[radius=2pt]node[right=3mm]{$v_{\lab}$};
}
\filldraw(2,1) circle[radius=2pt];
\node at (0,2) {$\vdots$};
\node at (2,2) {$\vdots$};
\node at (2,-1) {$\vdots$};
\draw[rounded corners] (1.7,-2.3) rectangle (2.3,3.3);
\end{tikzpicture}
\end{document}
Best Answer
You can use the
pgfplots
package to render that plot, because I did not have your functions, I used some sample functions (the same functions the others have used in their answers to your question). You can use this code as a template to produce your own plots.Note that the pgfplots package manual is so perfect, has many different examples (and options) and easy to read. I am a basic user of LaTeX, but in a short period of time, I understood how should I work with the package.
and here is the output:
You can use
lualatex
alongside this package too. See the previous edit of my answer to see an example of how to use it with pgfplots package and how complicated functions can be plotted. Regarding a comment to this answer:P.S. Because a bounty is started on this question, I edited my answer to have an output which looks like the other answers on the question but using a different LaTeX code. For previous codes please see the revisions of my answer.