I want to "draw" a function in TexShop.
Unfortunately I have two problems:
1. How do I get the points in this increasing distance? I have been searching for a while, but I cannot find a solution for my problem.
2. How do I get the color right? Cyan is pretty close, but not the right colour?
This is what I had so far:
Code: Select all
\documentclass[11pt]{article}
\usepackage{pstricks,pst-all}
\begin{document}
Example
\newpage
\section*{Aufgabe 5}
\section*{\markboth{Aufgabe 5}}
\addcontentsline{toc}{section}{Aufgabe 5}
\begin{figure}[h]
\centering
\psset{xunit=0.75cm,yunit=0.011cm}
\begin{pspicture}(-10,-1000)(10,1000)
\psaxes[Dy=100,showorigin=false, mathLabel=false]{<->}(0,0)(-10,-1000)(10,1000)
\psset{algebraic=true}
\psplot[plotstyle=line,linestyle=dotted,linecolor=cyan,linewidth=0.1cm]{-10}{10}{(x^3)-0.125*(x^2)}
\rput(10.5,0){$ s $}
\rput(10.8,1000){$ K(s) $}
\end{pspicture}
\caption[Abbildung 2: Funktionen plotten]{Aufgabe 5: Funktionen plotten}
\end{figure}
\end{document}
Thank you very much!