mirror of
https://github.com/The-Art-of-Hacking/h4cker
synced 2024-11-22 02:43:02 +00:00
Update risk_matrix_example.py
This commit is contained in:
parent
6046fdae6f
commit
e68eeee01c
1 changed files with 7 additions and 7 deletions
|
@ -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 a new issue