added all files reserch
This commit is contained in:
16
7-1.py
Normal file
16
7-1.py
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Define the dimensions of the trapezoid
|
||||
base1 = 5
|
||||
base2 = 3
|
||||
height = 4
|
||||
|
||||
# Plot the trapezoid
|
||||
trap_points = np.array([[0, 0], [base1, 0], [base1, height], [0, height]])
|
||||
plt.fill(trap_points[:, 0], trap_points[:, 1], color='gray')
|
||||
|
||||
# Show the plot
|
||||
plt.axis('scaled')
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user