TeX - LaTeX Asked by Niek de Meijier on March 18, 2021
I’m making a figure with four graphs next to each other but I want the graphs to be larger (without changing position). I don’t mind giving up some of the margin for this, but how do you do this in latex? I have tried a couple of things but then the figure is not centered anymore.
Here is my code:
begin{figure}[H]
centering
begin{subfigure}{.5textwidth}
centering
begin{center}includegraphics[width=1.0linewidth]{Figures/fundvsprice.pdf}end{center}
vspace{-0.45cm}
subcaption{Fundamental versus real values}label{fig:1a}
end{subfigure}%
begin{subfigure}{.5textwidth}
centering
begin{center}includegraphics[width=1.0linewidth]{Figures/fundvsprice.pdf}end{center}
vspace{-0.45cm}
subcaption{Fundamental versus real values}label{fig:1b}
end{subfigure}%
begin{subfigure}{.5textwidth}
centering
begin{center}includegraphics[width=1.0linewidth]{Figures/fundvsprice.pdf}end{center}
vspace{-0.45cm}
subcaption{Fundamental versus real values}label{fig:1c}
end{subfigure}%
begin{subfigure}{.5textwidth}
centering
begin{center}includegraphics[width=1.0linewidth]{Figures/fundvsprice.pdf}end{center}
vspace{-0.45cm}
subcaption{Fundamental versus real values}label{fig:1d}
end{subfigure}%
caption{General caption.} label{fig:1}
end{figure}
If I'm correct I see that these are MATLAB figures? In that case use 'tightfig' in MATLAB, that removes all the margins to start with. (I do not have enough rep to comment this :P)
otherwise you can use Crop an inserted image?
Answered by seaver on March 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP