quarto-dev / quarto-dev/quarto-cli

Ability to Set Subfigure Heights

Open
#626 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement layout
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Currently there seems to only be the option to manually control the subfigure widths, which resize the figures per line as in the documentation. For plot output from knitr or jupyter, that can be resized (unlike images that are embedded without distortion), it should be possible to set heights for the subfigures as well.

Currently if you set layout-nrow: 3 as below, you just get three full-size plots (as if they would be plotted by themselves), one after the other.

```{r}
#| layout-ncol: 3

plot(cars)
plot(pressure)
plot(mtcars)
```

I have also noticed when looking into this that currently the subplots are just scaled-down versions of the full-size plots, resulting in smaller font sizes and the like, rather than rendering the plot itself in a smaller area first, and then inserting it into the subfigure.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the custom-layout documentation linked in the issue and reproduce the layout-ncol and layout-nrow examples using knitr or Jupyter plot output. Define done as supporting configurable subfigure heights and rendering plots at the intended subfigure size without unexpectedly shrinking their text.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, r
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.