Farbverlauf des Graphen

Tabellen und Grafiken erstellen und anordnen


Immuneman
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Sa 17. Dez 2011, 16:55

Farbverlauf des Graphen

Beitrag von Immuneman »

Hallo!
Versuch beim plotten einer Funktion einen Farbverlauf hinzubekommen. Etwas nach dem Motto "linecolor=farbverlauf".
Mit pst-grad oder pst-slpe bekomme ich den Farbverlauf allerdings nur für das Integral hin. Vorchläge?
%
\documentclass[a4paper,12pt, DIV12]{article}
\usepackage{pst-all,pstricks,pstricks-add,pst-node}%\usepackage{}
\begin{document}
\begin{center}
\psscalebox{.8}{%
\begin{pspicture}(-2,-3)(5,4)
\psgrid[gridlabels=0,gridcolor=lightgray,subgridcolor=lightgray]
\psaxes{->}(0,0)(-1,-1)(4.5,3.5)\rput[l](4.5,0){$x$}\rput[l](0,6.5){$y$}
\psplot[linecolor=red,plotstyle=LineToXAxis,showpoints,dotsize=.1]{.0}{3.5}{1 2 div x 1 add mul x 1 sub mul x 3 sub mul}
\end{pspicture}}
\end{center}
\end{document}
[/code]