import matplotlib.pyplot as plt
import numpy as np
= np.linspace(0, 1)
t 2*np.pi*t), color='k')
plt.plot(t, np.sin(2*np.pi*t), color='red')
plt.plot(t, np.cos("Here is a plot") plt.title(
This is a quarto blog.
That means I can write code in either R or python directly in the blog post and have it execute. So when you see something like
That is the code that is actually executed. That means the blog is more reproducible and will have fewer errors. It also means you can go directly to the repo for my blog and clone the post to start tinkering. No more linking to other gitrepos, no more copying and pasting code with errors.
Did I mention I can write both R and python?
= seq(0, 1, 0.01)
t plot(t, sin(2*pi*t), main='Here is another plot!', xlab='', ylab='', type='l')
lines(t, cos(2*pi*t), col='red')