Draw each problem section of the Ishikawa plot. Parameters ---------- data : str The name of the problem category. problem_x, problem_y : float, optional The `X` and `Y` positions of the problem arrows (`Y` defaults to zero). angle_x, angle_y : float, option
(data: str,
problem_x: float, problem_y: float,
angle_x: float, angle_y: float)
| 22 | |
| 23 | |
| 24 | def problems(data: str, |
| 25 | problem_x: float, problem_y: float, |
| 26 | angle_x: float, angle_y: float): |
| 27 | """ |
| 28 | Draw each problem section of the Ishikawa plot. |
| 29 | |
| 30 | Parameters |
| 31 | ---------- |
| 32 | data : str |
| 33 | The name of the problem category. |
| 34 | problem_x, problem_y : float, optional |
| 35 | The `X` and `Y` positions of the problem arrows (`Y` defaults to zero). |
| 36 | angle_x, angle_y : float, optional |
| 37 | The angle of the problem annotations. They are always angled towards |
| 38 | the tail of the plot. |
| 39 | |
| 40 | Returns |
| 41 | ------- |
| 42 | None. |
| 43 | |
| 44 | """ |
| 45 | ax.annotate(str.upper(data), xy=(problem_x, problem_y), |
| 46 | xytext=(angle_x, angle_y), |
| 47 | fontsize=10, |
| 48 | color='white', |
| 49 | weight='bold', |
| 50 | xycoords='data', |
| 51 | verticalalignment='center', |
| 52 | horizontalalignment='center', |
| 53 | textcoords='offset fontsize', |
| 54 | arrowprops=dict(arrowstyle="->", facecolor='black'), |
| 55 | bbox=dict(boxstyle='square', |
| 56 | facecolor='tab:blue', |
| 57 | pad=0.8)) |
| 58 | |
| 59 | |
| 60 | def causes(data: list, |