I am trying to make my figures look nice, but I can only make them look OK, imo. I want to have a \decoRule under the figure and before the footnote, but I am struggling to make it fit the figure. I think this \decoRule is just a standard length, since I can't find that it has been defined anywhere in the document. (I sorry beforehand if I don't include the relevant packages in the code, but as far as I know this doesn't require any additional packages.
EDIT: I have found now that \decoRule is defined by \newcommand{\decoRule}{\rule{.8\textwidth}{.4pt}} % New command for a rule to be used under figures
.
\documentclass{article}
\begin{document}
\usepackage{graphicx}
\newcommand{\decoRule}{\rule{.8\textwidth}{.4pt}} % New command for a rule to be used under figures
\begin{figure}[ht]
\centering
\caption[An Electron]{Time Series of Consumption Prognosis}
\includegraphics[scale=0.5]{Figures/time_series_consumption}
\decoRule \\
\footnotesize
Hourly consumption prognosis. Released daily, predicting the consumption for all 24 hours of the following day.
\label{fig:3:6}
\end{figure}
\end{document}
\decoRule
you have is better than something that changes with the width/size of the image.