Document Classes ⇒ PSTricks | Plot of a Gauss Curve
PSTricks | Plot of a Gauss Curve
Thank you.
- Attachments
-
- Gauss.jpg (40.69 KiB) Viewed 11960 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
PSTricks | Plot of a Gauss Curve
Code: Select all
\documentclass{minimal}
\usepackage{pst-func,pstricks-add}
\begin{document}
\begin{pspicture}[showgrid=false](-5,-1)(5,5)
\psset{yunit=4cm,xunit=2}
\pscustom[linestyle=none,fillcolor=red,fillstyle=solid]{%
\psline(-1,0.125)(-1,0)(-1.75,0)
\psGauss{-1.75}{-1}
}
\pscustom[linestyle=none,fillcolor=red,fillstyle=solid]{%
\psGauss{1}{1.75}
\psline(1.75,0)(1,0)(1,0.125)
}
\psaxes[Dy=0.25,linecolor=blue]{->}(0,0)(-2,0)(2,1.25)
\uput[d](2,0){x}\uput[r](0,1.25){y}
\psGauss[sigma=0.5]{-1.75}{1.75}
\end{pspicture}
\end{document}
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10