Having subfigures side-by-side in a 2 column fashion. #1762
Answered
by
choldgraf
atharvaaalok
asked this question in
Q&A
-
|
How can I position two sub figures such that one is on the left and the other on the right but aligned horizontally? |
Beta Was this translation helpful? Give feedback.
Answered by
choldgraf
Jan 11, 2025
Replies: 1 comment 1 reply
-
|
I believe that you could accomplish this with the For example, the following MyST: generates something like this: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
atharvaaalok
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I believe that you could accomplish this with the
{grid}directive, and two{grid-item}directives inside of it. You could do this with{code-cell}directives to run the code in-line, or you could use{embed}functionality to attach labels to image outputs, then embed them in the grid with{figure}directives.For example, the following MyST: