My intention is to have a figure rotated and boxed with a tiny border just behind the limits of the figure.
I found a solution to rotate figures in Rotate picture with caption
But when I add these line in the preamble
\floatstyle{boxed}
\restylefloat{figure}
then the caption rotation is not working. Note that between the border and the figure there are white spaces (which I prefer to avoid them).
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass{DissertateB5}
\captionsetup{labelfont=\rmdefault, textfont=\rmdefault }
\usepackage{adjustbox}
\graphicspath{ {figures/} }
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}
\begin{document}
\begin{figure}
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{Visualización de los datos en Kibana}\label{fig:kibana} \end{minipage}},rotate=90,center}
\includegraphics[scale=.4]{kibana.png}
\end{adjustbox}
\end{figure}
\end{document}

float,adjustbox,captionetc., thus your code won't compile anyway. – sodd Dec 11 '16 at 13:47thesisis not a standard class - this does not help us any more thenDissertateB5. Can you reproduce your problem with something likebook,article,reportetc.? – samcarter_is_at_topanswers.xyz Dec 11 '16 at 21:45\usepackage{float} \floatstyle{boxed} \restylefloat{figure}, given the issue is not localised to a non-standard class there's no reason to use a non-standard class in your MWE (it just means that others can't compile it straight off) likewise the\captionsetupand\graphicspathdon't seem necessary to break the example so don't include them. – Dai Bowen Feb 04 '17 at 14:05