pgfplot polaraxis y 刻度标签重叠

pgfplot polaraxis y 刻度标签重叠

我只是想创建一个极轴图,其中 yticks 为 0.5、0.75、...2.5。但是,当我使用以下命令执行此操作时:

documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, margin= 0.8in, top= 0.8in, bottom= 0.8in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.polar}
\pgfplotsset{compat=1.16}

\begin{document}
\begin{tikzpicture}[scale=1.5]
    \begin{polaraxis}[%
                    xmin=0,%
                    xmax=360,%
                    ymin=0.5,%
                    ymax=2.5,%
                    xticklabels={},
                    ytick distance=0.25,
                    %yticklabel={500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500},
                    axis lines*=none,%
                    axis line style = {draw=white,line width=0.0001pt},
                    ]
    \end{polaraxis}
\end{tikzpicture}
\end{document}

我的轴标签全部重叠,看起来像这样

有什么办法吗?我可以在不改变标签大小的情况下增加绘图大小,或者可以交替使用它们以使它们都可以读取?

任何帮助都将不胜感激!

答案1

欢迎来到 TeX.SX!旋转标签和/或减小字体大小怎么样?

\documentclass[border=1mm]{standalone}

\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\pgfplotsset{compat=1.16}

\begin{document}

\begin{tikzpicture}[scale=1.5]
    \begin{polaraxis}[%
                    xmin=0,%
                    xmax=360,%
                    ymin=0.5,%
                    ymax=2.5,%
                    xticklabels={},
                    ytick distance=0.25,
                    %yticklabel={500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500},
                    y tick label style={font=\footnotesize, rotate=90},
                    axis lines*=none,%
                    axis line style = {draw=white,line width=0.0001pt},
                    ]
    \end{polaraxis}
\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容