New answers tagged

0

As per my comment. Note that [b] will align the bottoms of the captions, whereas [t] will align the bottoms (baselines) of the images. \documentclass[preprint,12pt]{elsarticle} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure}[tp]% ! doesn't do what you think it does \centering \begin{subfigure}[t]{0.4\linewidth} \centering ...


2

Like this? \documentclass{book} \usepackage[demo]{graphicx} % in real document remove option "demo" \usepackage{booktabs} \usepackage[textfont=bf]{caption} % <--- new \usepackage{subcaption} \usepackage{siunitx} % <--- new \begin{document} \begin{figure}[htb] \centering \begin{subfigure}{0.48\linewidth} \includegraphics[width=\...


0

You need to adjust the width of the plots. I would recommend making the subfigures wider. \begin{filecontents*}{data.csv} a,b,c,d 1,4,5,1 2,3,1,5 3,5,6,1 4,1,4,9 5,3,4,7 \end{filecontents*} \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{csvsimple} \usepackage{tikz} \usepackage{pgfplots} \usepackage{subcaption} \begin{document} \begin{...


Top 50 recent answers are included