### Bug description

I've been trying to emulate some Tufte-like elements from the [example HTML in the Quarto gallery](https://quarto-dev.github.io/quarto-gallery/page-layout/tufte.html) but I'm finding that the margin figures aren't being properly scaled. Here's a short Quarto markdown example:
````
# MWE

```{python}
#| fig-cap: "ReLU function"
#| column: margin
#| echo: false
import matplotlib.pyplot as pl

pl.plot([-1, 0, 1], [0, 0, 1])
pl.show()
```

Some text.  Here's a margin figure.

Here's some more text and a main figure.

```{python}
#| fig-cap: "ReLU function"
#| echo: false
import matplotlib.pyplot as pl

pl.plot([-1, 0, 1], [0, 0, 1])
pl.show()
```

````
which I build with this `_quarto.yml`:
```
format:
  html: default
```
and `quarto render mwe.qmd` with Quarto 1.3.340 on Fedora 37 (more system info at the end).

I've pinned a relevant change down to the package `matplotlib-inline`. With version 0.1.5, I get too large a figure in the margin. With 0.1.3, the margin figure is scaled correctly. (0.1.4 has been yanked from PyPI.) I noticed that the [changes between 0.1.3 and 0.1.5](https://github.com/ipython/matplotlib-inline/compare/0.1.3...0.1.5) include some matplotlib rcParams but adding those to a local `matplotlibrc` file didn't fix the scaling. At a glance, I'm not sure the main-column figure is being expanded to fill the column any more either.

I'm using Python 3.11 on Fedora 37 (though I encountered this with 3.9 on a Ubuntu 22.04 container too). `quarto check` gives:
```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.340
      Path: /home/wball/Downloads/quarto-1.3.340/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.3
      Path: /usr/bin/python3
      Jupyter: 5.2.0
      Kernels: python3

(|) Checking Jupyter engine render....[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.3
      Path: /usr/lib64/R
      LibPaths:
        - /home/wball/R/x86_64-redhat-linux-gnu-library/4.2
        - /usr/lib64/R/library
        - /usr/share/R/library
      knitr: 1.42
      rmarkdown: 2.20

[✓] Checking Knitr engine render......OK

```

Here are some verison numbers for potentially relevant Python packages (selected from `pip freeze`):
```
bokeh==3.0.3
colorama==0.4.6
colour==0.1.5
ipykernel==6.15.2
ipython==8.5.0
ipython-genutils==0.2.0
ipywidgets==8.0.4
jupyter==1.0.0
jupyter-console==6.6.2
jupyter-events==0.6.3
jupyter_client==7.4.9
jupyter_core==5.2.0
jupyter_server==2.3.0
jupyter_server_terminals==0.4.4
jupyterlab-pygments==0.2.2
jupyterlab-widgets==3.0.5
kaleido==0.2.1
Markdown==3.3.7
MarkupSafe==2.1.1
matplotlib==3.6.3
matplotlib-inline==0.1.5
nbclassic==1.0.0
nbclient==0.7.2
nbconvert==7.2.9
nbformat==5.7.3
notebook==6.5.2
notebook_shim==0.2.3
pandocfilters==1.5.0
pycairo==1.21.0
Pygments==2.14.0
PyQt5==5.15.9
PyQt5-sip==12.11.0
qtconsole==5.4.0
QtPy==2.1.0
widgetsnbextension==4.0.5
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-05-12T16:13:17Z
warrickball
bug jupyter triaged-to figures html
open
Margin figures not being scaled (as of `matplotlib-inline>=0.1.5`)
https://github.com/quarto-dev/quarto-cli/issues/5516