diff options
Diffstat (limited to 'textproc/quarto/files')
3 files changed, 41 insertions, 0 deletions
diff --git a/textproc/quarto/files/example-julia-fig-parametric.qmd b/textproc/quarto/files/example-julia-fig-parametric.qmd new file mode 100644 index 000000000000..6f4a49fde3cf --- /dev/null +++ b/textproc/quarto/files/example-julia-fig-parametric.qmd @@ -0,0 +1,13 @@ +```{julia} +#| label: fig-parametric +#| fig-cap: "Parametric Plots" + +using Plots + +plot(sin, + x->sin(2x), + 0, + 2π, + leg=false, + fill=(0,:lavender)) +``` diff --git a/textproc/quarto/files/example-py-line-plot-on-a-polar-axis.qmd b/textproc/quarto/files/example-py-line-plot-on-a-polar-axis.qmd new file mode 100644 index 000000000000..89f801bda03c --- /dev/null +++ b/textproc/quarto/files/example-py-line-plot-on-a-polar-axis.qmd @@ -0,0 +1,17 @@ +```{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() +``` diff --git a/textproc/quarto/files/example-r-airquality.qmd b/textproc/quarto/files/example-r-airquality.qmd new file mode 100644 index 000000000000..95f94c5f8647 --- /dev/null +++ b/textproc/quarto/files/example-r-airquality.qmd @@ -0,0 +1,11 @@ +```{r} +#| label: fig-airquality +#| fig-cap: "Temperature and ozone level." +#| warning: false + +library(ggplot2) + +ggplot(airquality, aes(Temp, Ozone)) + + geom_point() + + geom_smooth(method = "loess") +``` |
