Plot
sereto.plot
¶
_label_plot(ax, rect)
¶
Add labels to the bars in the bar plot.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ax
|
Axes
|
Object containing the bar plot. |
required |
rect
|
BarContainer
|
Object containing the bars in the bar plot. |
required |
Source code in sereto/plot.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
risks_plot(risks, path)
¶
Generate a bar plot with the number of vulnerabilities per risk rating.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
risks
|
Risks
|
Object containing the counts of vulnerabilities for each risk rating. |
required |
path
|
Path
|
Desired destination for the generated PNG file. |
required |
Source code in sereto/plot.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|