PSTricks plot minimal

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{pstricks-add}
\pagestyle{empty}
\begin{document}
\begin{figure}[h]
\centering
\psset{ury=0.5cm,algebraic,plotstyle=ecurve}% отступ сверху графика,
%алгебраический способ ввода формул, стиль графика
\begin{psgraph}[comma,arrows=->](0,0)(-1,-0.6)(5,0.6){.8\textwidth}{5cm}
\psplot[plotpoints=200]{-0.75}{5}{sin(4*x)/((4*x)^2+1)}
\psxTick[linecolor=red](1.55){$x_0$}
\resetOptions
\end{psgraph}
\caption{plot with labels}\label{plt:demo}
\end{figure}
\end{document}