import numpy as np
import matplotlib.pyplot as plt
= np.arange(0, 2, 0.01)
r = 2 * np.pi * r
theta
= plt.subplots(subplot_kw={'projection': 'polar'})
fig, ax
ax.plot(theta, r) plt.show()
Polar axis
For a demonstration of a line plot on a polar axis, see Figure 1.
Lets try some seaborn…
import seaborn as sns
="ticks", palette="pastel")
sns.set_theme(style
# Load the example tips dataset
= sns.load_dataset("tips")
tips
# Draw a nested boxplot to show bills by day and time
="day", y="total_bill",
sns.boxplot(x="smoker", palette=["m", "g"],
hue=tips)
data=10, trim=True) sns.despine(offset
testing…
why isn’t quarto creating a _freeze
directory? What stops it?