플롯에서 축을 어떻게 변경할 수 있나요?

플롯에서 축을 어떻게 변경할 수 있나요?

sourceforge.net에서 복사한 코드로 표면을 플롯했습니다. 어쨌든 tex 문서에 통합될 때 올바르게 렌더링되지 않는 축 레이블 지정을 변경하고 싶습니다. 내 축이 모든 점이 x=0 아래에 있다는 사실을 나타내기를 원합니다. 마찬가지로 내가 음모를 꾸미면

\addplot3[surf] {-x^2 - y^2}

모든 점이 z=0 위에 있음을 표시하고 싶습니다. 내 컨설팅 pgfmanual.pdf는 지금까지 도움이 되지 않았습니다. 또한 플롯의 크기를 조정(크기 증가 또는 감소)할 수 있기를 원합니다.

\documentclass[11pt,twoside]{report}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows, decorations.pathreplacing, matrix}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{axis}

\addplot3[surf] {-x^2 - y^2};
\end{axis}
\end{tikzpicture}
\end{document}

답변1

그동안 당신 스스로 해결책을 찾았기를 바랍니다. 그렇지 않다면 ...

\documentclass[border=2pt]{standalone}
\usepackage{pgfplots}
\begin{document}
    \begin{tikzpicture}
        \begin{axis}[
            % change the width of the plot
            width=7cm,
            % change the `zmin' value
            % (0 makes no sense here, because that is the maximum value
            %  of the given function. That is why I have chosen -10 here.)
            zmin=-10,
        ]
            \addplot3 [surf] {-x^2 - y^2};
        \end{axis}
    \end{tikzpicture}
\end{document}

위 코드의 결과를 보여주는 이미지

관련 정보