Hello Jupyter Notebook

Quarto post using Jupyter notebook
Author

Nishan Mann

Published

April 12, 2025

This post is created using a Jupyter notebook. Code courtesy of Microsoft Copilot

3D Figure

For a demonstration of a line plot on a polar axis, see Figure 1.

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

# Generate data
theta = np.linspace(-4 * np.pi, 4 * np.pi, 100)
z = np.linspace(-2, 2, 100)
r = z**2 + 1
x = r * np.sin(theta)
y = r * np.cos(theta)

# Create 3D plot
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot(x, y, z, label='3D Curve')
ax.set_xlabel('X-axis')
ax.set_ylabel('Y-axis')
ax.set_zlabel('Z-axis')
ax.legend()
Figure 1: A 3D plot that plots the parametric curve \(x=rsin(\theta), y=rcos(\theta), r=z^2+1\)

Figure captions and references the rendered document, I am sold!