diff options
| author | gsabin <sabinghimire071@gmail.com> | 2025-02-05 12:17:43 +0100 |
|---|---|---|
| committer | gsabin <sabinghimire071@gmail.com> | 2025-02-05 12:17:43 +0100 |
| commit | 5bec6fe2a3930421080aacda577e446d185599f5 (patch) | |
| tree | df4113a07b87bde35d3cc603e2cdaac7a864ca7d | |
initial draft
| -rw-r--r-- | test.qmd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test.qmd b/test.qmd new file mode 100644 index 0000000..81e507a --- /dev/null +++ b/test.qmd @@ -0,0 +1,27 @@ +--- +title: "Quarto Basics" +format: + html: + code-fold: true +jupyter: python3 +--- + +For a demonstration of a line plot on a polar axis, see @fig-polar. + +```{python} +#| 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() +``` |
