![删除轴 pgfplots 的编号](https://linux22.com/image/265183/%E5%88%A0%E9%99%A4%E8%BD%B4%20pgfplots%20%E7%9A%84%E7%BC%96%E5%8F%B7.png)
我怎样才能删除此图上的轴号螺旋以及包裹它的盒子?
现在是否可以添加带有 pgf 图的 tikz 3d 轴?
\tdplotsetmaincoords{72}{120}
\begin{tikzpicture}[line join = round, line cap = round, >=triangle 45, tdplot_main_coords]
\draw[->] (0,0,0) -- (0,5,0) node[right, scale = .75] {$y$};
\draw[->] (0,0,0) -- (0,0,5) node[above, scale = .75] {$z$};
\draw[->] (0,0,0) -- (6,0,0) node[below, scale = .75] {$x$};
答案1
我想你正在寻找hide axis
:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
hide axis,
% necessary to get a tight bounding box
% (\pgfplotsset{compat=1.8} also yields correct bounding box *and*
% correct clip path)
clip=false,
]
\addplot3+[domain=0:6*pi, samples=100, samples y=0,no marks, smooth](
{cos(deg(x))},
{sin(deg(x))},
{x/(3*pi)}
);
\end{axis}
\end{tikzpicture}
\end{document}
该clip=false
键产生一个紧密的边界框(对于 pgfplots 1.7 及以下版本是必需的)。从 pgfplots 1.8 及更高版本开始\pgfplotsset{compat=1.8}
,边界框将始终紧密,并且剪辑路径仍然可以处于活动状态。