I am using matplotlib and exporting my plots as pfg so I can keep math notation in latex.
I am using elsarticle. Things were working quite well until I switched the template to two columns. In this case the plot is too big and goes beyond the column.
This what I have at the moment:
\begin{figure}[htb]
\centering
\inputpgf{./figs/}{myplot.pgf}\label{fig:myplot}
\captionsetup{justification=centering}
\caption{This is my plot}
\end{figure}
how can I set width so it works well in both single and double column?

\pgfplotsset{width=0.9\linewidth}in the preamble of your document help? – May 01 '19 at 05:53