@@ -2,7 +2,7 @@
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{pgfplots}
-\pgfplotsset{compat=1.11}
+\pgfplotsset{compat=1.13}
\usetikzlibrary{arrows.meta}
\begin{document}
@@ -38,7 +38,7 @@
%xticklabels={,,},
%yticklabels={,,}
]
- \addplot3[surf] {-(x*x/16+y*y/4-1)};
+ \addplot3[surf, colormap name=viridis] {-(x*x/16+y*y/4-1)};
\end{axis}
\end{tikzpicture}
\end{preview}
@@ -42,7 +42,7 @@
- \addplot3[surf] {3*x*x-y*y-9*x+1};
+ \addplot3[surf, colormap name=viridis] {3*x*x-y*y-9*x+1};
- \addplot3[surf] {-3/25*x*x+1/25*y*y};
+ \addplot3[surf, colormap name=viridis] {-3/25*x*x+1/25*y*y};
@@ -44,7 +44,7 @@
% if you want to use Wolfram|Alpha:
% Plot3D[x*x-4*x*y+y*y+1, {x, -5, 5}, {y, -5, 5}]
- \addplot3[surf] {x*x-4*x*y+y*y+1};
+ \addplot3[surf, colormap name=viridis] {x*x-4*x*y+y*y+1};