# Geparametriseerde 2D-kromme import matplotlib.pyplot as plt import numpy as np plt.rcParams["figure.figsize"] = [8, 8] plt.rcParams["figure.autolayout"] = True t1 = np.linspace (0, np.pi / 2, 200) r1 = np.sin (2 * t1) x1 = r1 * np.cos (t1) y1 = r1 * np.sin (t1) t2 = np.linspace (np.pi, 3 * np.pi / 2, 200) r2 = np.sin (2 * t2) x2 = r2 * np.cos (t2) y2 = r2 * np.sin (t2) fig, ax = plt.subplots () ax.set_aspect ("equal") ax.plot (x1, y1, x2, y2, color = "orange") plt.show ()