答案1
我选择了一个简单的函数。使用xelatex
或序列运行latex
-> dvips
->s2pdf or use package
auto-pst-pdf and run with
pdflatex --shell-escape`:
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{xunit=1.3}
\begin{pspicture}(-1,-1)(7,4)
\psaxes[labels=none,ticks=none]{->}(7,4)[$x$,-90][$\mu(x)$,180]
\psplot[algebraic]{0}{6.5}{(2*x-1)/(x+4)+1}
\multido{\iA=0+1}{7}{%
\psline[arrows=-*,linestyle=dashed](\iA,0)(* {\iA} {(2*x-1)/(x+4)+1})}
\multido{\iA=1+1,\iB=5+-1}{5}{\psxTick(\iA){x-\iB h}}
\psxTick(0){0}\psxTick(6){x}
\end{pspicture}
\end{document}