我有以下图表,我试图缩放标有“压力”的轴的结果显示。我希望结果显示“2,000”而不是“2”。
MWE 如下:
\documentclass[letterpage,12pt]{article}
\usepackage{pgfplots}
\pgfplotsset{colormap={grays}{gray(0cm)=(0.5);gray(1cm)=(0)}}
\pgfplotsset{compat=1.13}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\begin{axis}[%
view={60}{30},
axis equal image,
width=\textwidth,
xlabel style={align=center},
xlabel={Pressure \\ $q_v$},
ylabel={$y$},
zlabel={$z$}
]
\addplot3[
patch,
fill=white,
opacity=0.8,
samples=51,
domain=-3:3,
y domain=0:-3,
point meta=x
]
({-3*5*5^2*y/(2*3.1415*(1.5^2+x^2+y^2)^2.5)}, x, y);
\end{axis}
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}
答案1
好的,怎么样?
\documentclass[letterpage,12pt]{article}
\usepackage{pgfplots}
\pgfplotsset{colormap={grays}{gray(0cm)=(0.5);gray(1cm)=(0)}}
\pgfplotsset{compat=1.13}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\begin{axis}[%
view={60}{30},
axis equal image,
width=\textwidth,
xlabel style={align=center},
xlabel={Pressure \\ $q_v$},
ylabel={$y$},
zlabel={$z$},
%xtick={0,2},
xticklabel={\pgfmathparse{1000*\tick}$\pgfmathprintnumber{\pgfmathresult}$},
]
\addplot3[
patch,
fill=white,
opacity=0.8,
samples=51,
domain=-3:3,
y domain=0:-3,
point meta=x
]
({-3*5*5^2*y/(2*3.1415*(1.5^2+x^2+y^2)^2.5)}, x, y);
\end{axis}
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}
然后?