2

I've been working to try and make a slide for a presentation with a 4x4 set of figures showing four different Directed Acyclic Graphs. However, it seems that Quarto won't resize the diagrams for the columns. I tried simplifying this down and noticed that not only would it not resize them, but, it would also cut off graphs if a column width was too narrow. Here is a reprex showing this odd behavior. What can I do here to have quarto diagrams respect the column resizing?

First, this looks fine.

---
title: "test"
format: revealjs
---

# DAG Before You Model

```{dot}
digraph {

layout = neato

m [
    shape = none
    pos = "-1,1!"
]

d [
    shape = none
    pos = "0,0!"
]


a [
    shape = none
    pos = "1,1!"
]


m -> d
a -> d
}

works

But, with this modification, things get weird and cut-off.

---
title: "test"
format: revealjs
---

# DAG Before You Model

::: {.columns}

::: {.column width="50%"}

```{dot}
digraph {

layout = neato

m [
    shape = none
    pos = "-1,1!"
]

d [
    shape = none
    pos = "0,0!"
]


a [
    shape = none
    pos = "1,1!"
]


m -> d
a -> d
}
```

:::


::: {.column width="50%"}
:::

:::

The cutoff diagram

If you mess with the column widths, you can start getting the cutoff part back, but, the diagram never resizes.

Running quarto 1.4.549 R 4.3.2

1
  • This looks like a bug. Maybe you can submit an issue?
    – Quinten
    Commented Feb 14 at 14:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.