Post With Code

news
code
analysis
Author

Harlow Malloc

Published

October 17, 2022

This is a post with executable code.

import numpy as np
import matplotlib.pyplot as plt
import sys

from time import sleep

sleep(.4)
print(sys.executable)

r = np.arange(0, 3, 0.02)
theta = 2 * np.pi * r
fig, ax = plt.subplots(
  subplot_kw = {'projection': 'polar'} 
)
ax.plot(theta, r)
ax.set_rticks([1, 1.5, 2])
ax.grid(True)
plt.show()
/Users/jhereth/quda_repos/github.com/jhereth/quda-site/.venv/bin/python3

Figure 1: A line plot on a polar axis