import numpy as np
import matplotlib.pyplot as plt
= np.arange(0, 2, 0.01)
r = 2 * np.pi * r
theta = plt.subplots(
fig, ax = {'projection': 'polar'}
subplot_kw
)
ax.plot(theta, r)0.5, 1, 1.5, 2])
ax.set_rticks([True)
ax.grid( plt.show()
Python y Quarto
Se ha configurado el diseño del html combiando un fichero yaml e incluyendo código yaml en el notebook.
Yaml
El yaml en la cabecera del código contiene:
project:
type: website
output-dir: docs
format:
html:
theme: style.css
El cuál no reacciona a la indicación de output-dir y genera el fichero html en el mismo directorio en el que se ejecuta el notebook.
Polar Axis
For a demonstration of a line plot on a polar axis, see Figura 1.