I have a simple quarter polar plot that I would like to rotate by -90°. However, doing so inserts a large gap between the plot and its caption. That doesn't happen when I rotate the plot by +90°. Is it a bug in pgfplots?
Here is a MWE:
\documentclass[]{article}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\usepgfplotslibrary{polar}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[t]{0.49\columnwidth}
\centering
\begin{tikzpicture}
\begin{polaraxis}[xmin=0,xmax=90,ymin=0,ymax=1,rotate=90,x dir=reverse,domain=0:90,no markers, yticklabels={}]]
\addplot [thick, smooth] {cos(x)};
\end{polaraxis}
\end{tikzpicture}%
\caption{Positive $90^\circ$ rotation}
\end{subfigure}
\begin{subfigure}[t]{0.49\columnwidth}
\centering
\begin{tikzpicture}
\begin{polaraxis}[xmin=0,xmax=90,ymin=0,ymax=1,rotate=-90,x dir=reverse,domain=0:90,no markers,yticklabels={}]]
\addplot [thick, smooth] {cos(x)};
\end{polaraxis}
\end{tikzpicture}%
\caption{Negative $90^\circ$ rotation (adds gap)}
\end{subfigure}
\caption{Rotation of a polar graph}
\end{figure}
\end{document}
clip=false
to the rightpolaraxis
environment