mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-10-01 01:25:43 -04:00
Update risk_matrix_example.py
This commit is contained in:
parent
6046fdae6f
commit
e68eeee01c
@ -22,15 +22,15 @@ labels = list(risks.keys())
|
||||
# Create the plot
|
||||
plt.figure(figsize=(8, 6))
|
||||
plt.scatter(x, y, color='blue')
|
||||
plt.title('AI System Risk Matrix')
|
||||
plt.xlabel('Likelihood')
|
||||
plt.ylabel('Impact')
|
||||
plt.xticks([1, 2, 3, 4], ['Low', 'Medium', 'High', 'Very High'])
|
||||
plt.yticks([1, 2, 3, 4], ['Low', 'Medium', 'High', 'Very High'])
|
||||
plt.title('AI System Risk Matrix', fontsize=18)
|
||||
plt.xlabel('Likelihood', fontsize=14)
|
||||
plt.ylabel('Impact', fontsize=14)
|
||||
plt.xticks([1, 2, 3, 4], ['Low', 'Medium', 'High', 'Very High'], fontsize=14)
|
||||
plt.yticks([1, 2, 3, 4], ['Low', 'Medium', 'High', 'Very High'], fontsize=14)
|
||||
plt.grid(True)
|
||||
|
||||
# Annotate the points
|
||||
# Annotate the points with larger font
|
||||
for i, label in enumerate(labels):
|
||||
plt.annotate(label, (x[i], y[i]))
|
||||
plt.annotate(label, (x[i], y[i]), fontsize=14)
|
||||
|
||||
plt.show()
|
||||
|
Loading…
Reference in New Issue
Block a user