Menu

#172 [colorbar as legend] `colorbar style` not working

v1.0 (example)
open
None
3
2017-05-26
2017-05-26
No

I just realized that colrobar style isn't working when colorbar as legend is used in a normal axis environment. Interestingly this combination is working when used in \pgfplotscolorbardrawstandalone.

\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
    \begin{axis}[
%        colorbar,              % <-- works
        colorbar as legend,    % <-- doesn't work
        colorbar style={
            ticklabel style={
                draw=red,
            },
        },
    ]
    \end{axis}
\end{tikzpicture}
%\pgfplotscolorbardrawstandalone[
%    colorbar as legend,         % <-- works (for whatever reason)
%    colorbar style={
%        ticklabel style={
%            draw=red,
%        },
%    },
%]
\end{document}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.