Graphics, Figures & Tables ⇒ Plot e^x with PSTricks
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Plot e^x with PSTricks
Anyone have suggestions?
Thank you
Nick
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
Plot e^x with PSTricks
Code: Select all
\documentclass{minimal}
\usepackage{pstricks-add}
\newcommand*{\PSTeuler}{2.7182818}
\begin{document}
\begin{psgraph}(0,0)(-5,0)(5,8){10cm}{!} % x-y-axis with same unit
\psplot[algebraic=true,linecolor=red]{-5}{2}{\PSTeuler^x}
\end{psgraph}
\end{document}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Re: Plot e^x with PSTricks
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Re: Plot e^x with PSTricks
Undefined controls sequence
<argument>..psplot \ifPst@algebraic (\PSTeuler^x) \ifx \psk@PlotDerivative...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Plot e^x with PSTricks
Reading the related manuals helps a lot. The rest is practical application (although I switched to pgf/tikZ).coachbennett1981 wrote:How do you know so much? […]
You just need an update [1]. That's it.coachbennett1981 wrote:[…] I have been told I need to update my PStricks, but I don't know how. […]
[1] MiKTeX 2.8 Manual - Installing Updates
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Re: Plot e^x with PSTricks
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Plot e^x with PSTricks
It seems that your version doesn't accept the algebraic option. For the present you can try to plot the function using a postfix expression.
Code: Select all
\documentclass{minimal}
\usepackage{pstricks-add}
\begin{document}
\begin{psgraph}(0,0)(-5,0)(5,8){10cm}{!} % x-y-axis with same unit
\psplot[linecolor=red]{-5}{2}{2.7182818 x exp}
\end{psgraph}
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10