Code
import numpy as np
import matplotlib.pyplot as plt
v = np.array([3, 2])
fig, ax = plt.subplots(figsize=(5, 5))
ax.set_aspect("equal", adjustable="box")
ax.set_xlim(-1, 5)
ax.set_ylim(-1, 5)
# axes
ax.axhline(0)
ax.axvline(0)
# vector arrow
ax.arrow(0, 0, v[0], v[1], length_includes_head=True, head_width=0.2)
ax.scatter([v[0]], [v[1]])
ax.text(v[0] + 0.1, v[1] + 0.1, r"$\mathbf{v}=[3,2]$", fontsize=12)
ax.set_title("Vector = one measurement bundle (an arrow)")
ax.set_xlabel("feature 1")
ax.set_ylabel("feature 2")
plt.show()




