![pgfplot polaraxis y 刻度标签重叠](https://linux22.com/image/443357/pgfplot%20polaraxis%20y%20%E5%88%BB%E5%BA%A6%E6%A0%87%E7%AD%BE%E9%87%8D%E5%8F%A0.png)
我只是想创建一个极轴图,其中 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}