Questions tagged [subfigure]

Subfigure is a package for Latex that provides support for sub-figures and tables by simplifying the positioning, captioning and layout of such objects within a single figure / table environment.

44 questions
28
votes
3 answers

Subfigures or Subcaptions with knitr?

Is it possible to produce subfigures (with associated subcaptions) using knitr? Here is a minimal working example: \documentclass{article} \begin{document} <
dynamo
  • 2,988
  • 5
  • 27
  • 35
10
votes
1 answer

Control font size in graphics in LaTeX when scaling in minipage/subfig?

I am using pgf/tikz graphics and I'm wondering how one can control the scaling of font sizes in the graphics when using them in minipage/subfig environments? Is there a way to manually set a permanent font size for pgf/tikz graphics or in latex in…
Jay
  • 2,917
  • 3
  • 18
  • 13
7
votes
3 answers

knitr: Add figure notes

I have a figure that looks like this: <>= plot1 plot2 @ Now I would like to display a set of notes about this figure right below (i.e. a multiline text). Is there any convenient way to…
JBDonges
  • 307
  • 1
  • 9
6
votes
1 answer

How to give an space between figures on subfigure latex ambient?

I am using the command \begin{subfigure}...\end{subfigure} to insert three pictures side by side. But I would like to know how to give an space between then, since they are too close each other. \begin{figure} \begin{subfigure} here's the…
Diego
  • 155
  • 2
  • 4
  • 11
5
votes
2 answers

subfigures stacked vertically with knitr

I am trying to put two subfigures stacked vertically rather than side-by-side using knitr in a Latex document. In Latex, I usually do this by putting a '\par' command between two subfloats that need to be stacked op top of one another, but I don't…
Thijs
  • 179
  • 2
  • 9
4
votes
1 answer

Give a single figure multiple captions in rmarkdown pdf_book output

I am writing my thesis with bookdown. I want to include a List of Figures, but I don't want to include the whole of each figure's caption. My thought was to give each figure one caption that appears in the lof and a second caption that doesn't. I…
Mark Davies
  • 787
  • 5
  • 18
4
votes
1 answer

How to resize subfigures when using ImageGrid from Matplotlib

Using Python and Matplotlib, I'm trying to produce a figure consisting of two subfigures, each containing a group of plots with a common colour bar. I have almost everything working. The only part I cannot figure out is how to make the top and…
Arthur Magill
  • 63
  • 1
  • 5
4
votes
1 answer

Latex- flipping figures

How can I flip a figure in my LaTeX file around horizontal axis? The figures reside in subfigure.
Zoran
  • 459
  • 1
  • 6
  • 19
3
votes
1 answer

Cross Reference Subfigures in R Markdown

I have a figure with subfigures in R Markdown. How do I cross-reference these in the text as Figure 1a, Figure 1b etc? ```{r figgy, fig.cap='Caption', echo = FALSE, fig.ncol = 2, out.width = "50%", fig.align = "center", fig.subcap=c('(a)', '(b)',…
R Walser
  • 330
  • 3
  • 16
3
votes
1 answer

How to use multiple background colors for a figure in Python?

I just want to plot several data sets, say 4, using subfigures, i.e. something like fig = figure(1) ax1 = fig.add_subplot(221) ax2 = fig.add_subplot(222) ax3 = fig.add_subplot(223) ax4 = fig.add_subplot(224) This is working well. But additionally…
berti
  • 53
  • 7
3
votes
1 answer

Referencing a subfigure in LaTeX that doesn't have a caption

I have 2 figure side by side in LaTeX using the recommended package subcaption. \begin{figure} \centering \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth]{events/pad_p2} \label{fig:pad_p2} \end{subfigure} ~ …
jbssm
  • 6,861
  • 13
  • 54
  • 81
3
votes
2 answers

How to place a wide figure with subfigures in Latex?

I am trying to write a report and stuck with a wide figure. My document type is PRL using revtex4.1 with two columns. I have a wide figure which consists of 8 subfigures. I am trying to place it bottom of a page but it insists to go next page. Here…
ukaratay
  • 33
  • 1
  • 5
3
votes
2 answers

How do I merge cells of the same column in LyX?

I have 3 subfigures I want to arrange so that 1 will be in the left and 2 will be in the right (one above the other): Figure 1 | Figure 2 Figure 1 | Figure 3 Figure 1 should appear only once of course - across the entire column. I thought I…
brickner
  • 6,595
  • 3
  • 41
  • 54
2
votes
0 answers

Problems with constrained_layout and suptitle with subfigures

I am trying to create a figure in pyplot with specific gridspec, but I got into a dead end. When using subfigures it is needed to use constrained_layout = True option in the figure definition, but it disables the hspace = 0 option in the GridSpec…
Galedon
  • 21
  • 3
2
votes
1 answer

One figure with two subplots and one with three do not have the same size

I am trying to create two figures with squared subfigures for an article. My problem is that when I do it for two subfigures I get one size and when I do it for three I get a different one, and I would like both to have the same overall size.…
mariofp77
  • 115
  • 5
1
2 3