Open jgutman opened 2 years ago
Note: Also reproducible in
Question: for python chunks, is the corresponding option fig-cap
? With a dash rather than dot?
In quarto documentation, the following example is given, so we'd want to check that this is supported as well:
For a demonstration of a line plot on a polar axis, see @fig-polar.
#| label: fig-polar
#| fig-cap: "A line plot on a polar axis"
import numpy as np
import matplotlib.pyplot as plt
r = np.arange(0, 2, 0.01)
theta = 2 * np.pi * r
fig, ax = plt.subplots(
subplot_kw = {'projection': 'polar'}
)
ax.plot(theta, r)
ax.set_rticks([0.5, 1, 1.5, 2])
ax.grid(True)
plt.show()
System details
Steps to reproduce the problem
Create an Rmd with an R code chunk