LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Uneven spacing in multi charts in a Single Chart

Information and discussion about graphics, figures & tables in LaTeX documents.
hkarun
Posts: 2
Joined: Tue Jun 05, 2018 3:10 pm

Uneven spacing in multi charts in a Single Chart

Dear All,
I am new to Latex and trying to build an article in it. I intend to put multiple charts (6 in one single page). I wrote the following code :
\begin{figure} 	\begin{subfigure}{\textwidth}  		\includegraphics[width=0.40\linewidth]{Fig4corr1.pdf} 	\end{subfigure}% 	\begin{subfigure}{\textwidth}  		\includegraphics[width=0.40\linewidth]{Fig4corr2.pdf} 	\end{subfigure}		 	\begin{subfigure}{\textwidth}  		\includegraphics[width=0.40\linewidth]{Fig4corr3.pdf} 	\end{subfigure}% 	\begin{subfigure}{\textwidth}  		\includegraphics[width=0.40\linewidth]{Fig4corr4.pdf} 	\end{subfigure}% 	\begin{subfigure}{\textwidth}  		\includegraphics[width=0.40\linewidth]{Fig4corr5.pdf} 	\end{subfigure}% 	\begin{subfigure}{\textwidth}  		\includegraphics[width=0.40\linewidth]{Fig4corr6.pdf} 	\end{subfigure}%  	\caption{Correlation Matrices of the variables} 	\footnotesize Notes on Graphs in Figure 4: The distribution of each variable is shown on the diagonal. On the bottom of the diagonal: the bivariate scatter plots with a fitted line are displayed.  On the top of the diagonal: the value of the correlation plus the significance level as stars. Each significance level is associated to a symbol: p-values (0, 0.001, 0.01, 0.05, 0.1, 1) <=> symbols ("***", "**", "*", ".", " ") \end{figure}

The output of this code comes like as shown in the image . Can any of you please guide me how to fix this problem please? I will be grateful for any suggestions on it. Thanks
Attachments
outcome.PNG (79.5 KiB) Viewed 430 times

Stefan Kottwitz
Posts: 9285
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

welcome to the forum!

Perhaps you use the wrong syntax - but it depends which package you are using: subfigure, subfig, or subcaption. Which one is it?

Stefan

hkarun
Posts: 2
Joined: Tue Jun 05, 2018 3:10 pm
I used subfigure package

Stefan Kottwitz
Posts: 9285
Joined: Mon Mar 10, 2008 9:44 pm
In that case it's the wrong syntax. The package provides the command \subfigure, but you wrote \begin{subfigure} ... \end{subfigure}.

The syntax (see subfigure manual) is

\subfigure[list entry][subcaption]{figure}

It seems that you use the syntax of subcaption. Perhaps remove \usepackage{subfigure} and add \usepackage{subcaption}, or fix the syntax.

Stefan

Who is online

Users browsing this forum: No registered users and 9 guests