Post With Code

code
Published

September 25, 2023

This post contains executed code.

using Plots

plot(sin,
    x -> sin(2x),
    0,
    2π,
    leg=false,
    fill=(0, :lavender))
Figure 1: Parametric Plots
using PyCall

py"""import antigravity
print("YOU'RE FLYING! HOW?")
"""
YOU'RE FLYING! HOW?
using PyCall

py"""
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)
"""