von KWA » Mi 5. Okt 2011, 21:31
Hallo,
wie kann ich die colorbar eines 3D-plots ohne ticks (evtl. auch ohne Rahmen) darstellen?
Anbei mein Beispiel:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{verbatim}
\pgfplotsset{compat=1.3, axis line style={ultra thin}, tick style={ultra thin,black}, major tick length={0.1cm}, minor tick length={0.06cm}, xlabel near ticks, ylabel near ticks}
\pgfplotsset{width=7cm}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view/az=45,
colorbar sampled={surf}, %Teilungen zwischen den Farbabstufungen
colorbar style={samples=20}, %Anzahl Farbabstufung
colorbar shift/.style={xshift=0.1cm}, %Abstand colorbar
colorbar/width=0.5cm, %Breite colorbar
point meta min=-0.2, %Minimum colorbar
point meta max=0.2, %Maximum colorbar
colormap={color}{color(0cm)=(white); color(1cm)=(blue)}]
\addplot3[surf, domain=0:1,y domain=-3:3] {x*(1-x)*tanh(y)};
\end{axis}
\end{tikzpicture}
\end{document}
Kann mir jemand von euch helfen?
Dank & Gruß
KWA
Hallo,
wie kann ich die colorbar eines 3D-plots ohne ticks (evtl. auch ohne Rahmen) darstellen?
Anbei mein Beispiel:
[code]
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{verbatim}
\pgfplotsset{compat=1.3, axis line style={ultra thin}, tick style={ultra thin,black}, major tick length={0.1cm}, minor tick length={0.06cm}, xlabel near ticks, ylabel near ticks}
\pgfplotsset{width=7cm}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view/az=45,
colorbar sampled={surf}, %Teilungen zwischen den Farbabstufungen
colorbar style={samples=20}, %Anzahl Farbabstufung
colorbar shift/.style={xshift=0.1cm}, %Abstand colorbar
colorbar/width=0.5cm, %Breite colorbar
point meta min=-0.2, %Minimum colorbar
point meta max=0.2, %Maximum colorbar
colormap={color}{color(0cm)=(white); color(1cm)=(blue)}]
\addplot3[surf, domain=0:1,y domain=-3:3] {x*(1-x)*tanh(y)};
\end{axis}
\end{tikzpicture}
\end{document}
[/code]
Kann mir jemand von euch helfen?
Dank & Gruß
KWA