xxxxxxxxxx
import matplotlib.pyplot as plt
import matplotlib.patches as patches
# Create figure and axes
fig, ax = plt.subplots()
# Create a Rectangle patch
rect = patches.Rectangle((50, 100), 40, 30, linewidth=1, edgecolor='r', facecolor='none')
# Add the patch to the Axes
ax.add_patch(rect)
plt.show()