If, for some reason, you can't use another package but the obslote subfigure
package, here's one way to achieve what you want; basically, don't leave blank lines between subfigure
environment (those blank lines are \par
commands ending a paragraph); also, instead of using scale=<value>
it could be safer to use width=<length>
so that you can guarantee that the total width for the three images won't surpass the \textwidth
(of course, if you can guarantee the condition using scale
, then feel free to use that option instead); try not to leave spurious blank spaces (your code has some of those too which I removed using %
at the end of some lines):
\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{grrfile}
\usepackage[paper=letterpaper,left=1.0in,right=1.0in,top=0.25in,bottom=1.0in,]{geometry}
\begin{document}
\begin{figure}[ht]
\centering
\begin{subfigure}[Initial condition]{\includegraphics[width=.3\linewidth] {./pngs/profile_L_3lambda_max_1wl_0.png}
\label{fig:subfig1}
}%
\end{subfigure}\hfill
\begin{subfigure}[DFT]{\includegraphics[width=.3\linewidth]{./pngs/profile_L_3lambda_max_1wl_dft_0.png}
\label{fig:subfig2}
}%
\end{subfigure}\hfill
\begin{subfigure}[DFT (corner)]{\includegraphics[width=.3\linewidth]{./pngs/profile_L_3lambda_max_1wl_dft_0_X.png}
\label{fig:subfig3}
}%
\end{subfigure}%
\caption{Initial condition, $L=3\lambda_{max}, \text{k}=1, G=0.333,S=100, M=35.1, \text{Pr=7.02}, E=0, Ra=0$}
\label{fig:myfigure}
\end{figure}
\end{document}
![enter image description here](https://i.stack.imgur.com/shWot.png)
For the example, I removed some of the packages that were not essential for the solution.
The demo
option for graphicx simply replaces actual figures with black rectangles; do not use that option in your actual document.
[...]
\psaxes[Oy=190,Dy=10,ylabelFactor={\cdot 10^3},Ox=1990,showorigin=false]{->}%
(0,0)(6.5,130)[,0][Antal norske turister,90]
\psline[linecolor=white](0,10)
\pszigzag[coilarm=0.25,coilwidth=0.3,coilheight=0.5](0,0)(0,10)
[...]
Best Answer
A solution with
tikzpicture
:And without
minipages
:I had to replace your pdf files with the
example-image
ofgraphicx
. Please try to provide a MWE in future questions.