I insert a figure in my latex. But I want to make the background of the figure to be blue. How could I achieve that?
\begin{figure} [t]%[htbp]%[f]
\centering
\includegraphics[width= 0.65\linewidth]{./figs/BFSall.pdf}
\caption{\color{blue}(a) BFSa-kNN; (b) BFSb-kNN.}
\label{implementationBFSKNN}
\end{figure}
\olor{blue}inside of\caption: If you want to color all captions in your document that way, you might want to use the\captionpackage in combination with\captionsetup{textfont={color=blue}}. – leandriis Oct 03 '19 at 08:20figureenvironment: Frame and background color for all figures or Rounded corner colored box around figure. Related if it is more about changing the actual background color of the image (if it currently is transparent): ADDING white background to an image? – leandriis Oct 03 '19 at 08:21\fcolorboxto put a blue panel behind the figure, but if the figure is not transparent it will have no effect. If the background within the figure is (say) white rather than transparent you will need to edit the source of the figure. – David Carlisle Oct 03 '19 at 08:26