|
@ -251,8 +251,7 @@ def plot_preds( |
|
|
ax.set_aspect("equal") |
|
|
ax.set_aspect("equal") |
|
|
ax.axis("off") |
|
|
ax.axis("off") |
|
|
radius = 1 |
|
|
radius = 1 |
|
|
ax.set_ylim(-radius, radius) |
|
|
ax.set_ylim(0, radius) |
|
|
ax.set_xlim(-radius, radius) |
|
|
|
|
|
|
|
|
|
|
|
# Overlay white circle |
|
|
# Overlay white circle |
|
|
circle = patches.Circle( |
|
|
circle = patches.Circle( |
|
@ -261,6 +260,8 @@ def plot_preds( |
|
|
ax.add_patch(circle) |
|
|
ax.add_patch(circle) |
|
|
|
|
|
|
|
|
if FONTSIZE > 0.0: |
|
|
if FONTSIZE > 0.0: |
|
|
|
|
|
center = (0, 0) |
|
|
|
|
|
fcolor = "black" |
|
|
ax.annotate( |
|
|
ax.annotate( |
|
|
f"{KIND.upper()}", |
|
|
f"{KIND.upper()}", |
|
|
center, |
|
|
center, |
|
@ -272,7 +273,7 @@ def plot_preds( |
|
|
|
|
|
|
|
|
fig.tight_layout(pad=0) |
|
|
fig.tight_layout(pad=0) |
|
|
|
|
|
|
|
|
plt.savefig(fname, dpi=dpi, transparent=False, pad_inches=0, bbox_inches="tight") |
|
|
plt.savefig(fname, dpi=dpi, transparent=True, pad_inches=0, bbox_inches="tight") |
|
|
plt.close() |
|
|
plt.close() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|