% !TEX TS-program = XeLaTeX
% Commands for running this example:
% 	 xelatex xepersian_example
% 	 xelatex xepersian_example
% End of Commands
% در TeXWorks برای اجرا Ctrl+T را بزنید. 
% در TeXMaker اصلاح شده، برای اجرا دکمه‌ی F1 و برای مشاهده‌ی PDF دکمه‌ی F7 را بزنید.
% This is a very simple document using xepersian package
\documentclass{article}
\pagestyle{empty}
%\usepackage{graphicx}
%\usepackage{verbatim}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}

\usepackage{xepersian}
%دستور زیر برای تعیین فونت متن فارسی می‌باشد.
\settextfont[Scale=1]{Tahoma}
%\settextfont[Scale=1]{Persian Modern}
%دستور زیر برای تعیین فونت متن لاتین می‌باشد.
%\setlatintextfont{Linux Libertine}
%دستور زیر برای تعیین فونت اعداد می‌باشد.
%\setdigitfont[Scale=1]{Persian Modern}

\title{نوشتهٔ ساده‌ای با لاتک و بستهٔ زی‌پرشین}
\author{امیرمسعود پورموسی
\\ \small\lr{http://www.parsilatex.com}
}
\begin{document}



\centering
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm,scale=.5]
\draw[>=latex,->,color=black,] (-3,0) -- (8,0);
\foreach \x in {1,2,3,4,5,6,7}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[>=latex,->,color=black] (0,-1.5) -- (0,3.5);
\foreach \y in {-1,1,2}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt);
\draw[color=black] (0pt,-1pt) node[below left] {\footnotesize $0$};
\node at (8,0) [right ] {\small $x$};
\node at (0,3.5) [above ] {\small $y$};
\node at (-2,0) [below] {\small $(-2,0)$};
\draw [fill=cyan](-2,0) circle (.7mm);
\draw [fill=cyan](0,1) circle (.7mm);
\node at (0,1) [left] {\small $(0,1)$};
\draw [fill=cyan](2,2) circle (.7mm);
\node at (2,2) [above] {\small $(2,2)$};
\draw [fill=cyan,fill opacity=0.3] plot
[domain=-2:8](\x,{sqrt((\x)+2)});
\end{tikzpicture}
%\caption{$\sqrt{x+2}$ }

\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm,scale=.5]
\draw[>=latex,->,color=black,] (-3,0) -- (8,0);
\foreach \x in {1,2,3,4,5,6,7}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[>=latex,->,color=black] (0,-1.5) -- (0,3.5);
\foreach \y in {-1,1,2}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt);
\draw[color=black] (0pt,-1pt) node[below left] {\footnotesize $0$};
\node at (8,0) [right ] {\small $x$};
\node at (0,3.5) [above ] {\small $y$};
%\node at (-2,0) [below] {\small $(-2,0)$};
%\draw [fill=cyan](-2,0) circle (.7mm);
%\draw [fill=cyan](0,1) circle (.7mm);
%\node at (0,1) [left] {\small $(0,1)$};
%\draw [fill=cyan](2,2) circle (.7mm);
%\node at (2,2) [above] {\small $(2,2)$};
\draw [fill=cyan,fill opacity=0.3] plot
%[domain=-3:3](\x,{(\x)^(2/3)});


\end{tikzpicture}



\end{document}
