|
|
@ -251,8 +251,7 @@ def plot_preds( |
|
|
|
ax.set_aspect("equal") |
|
|
|
ax.axis("off") |
|
|
|
radius = 1 |
|
|
|
ax.set_ylim(-radius, radius) |
|
|
|
ax.set_xlim(-radius, radius) |
|
|
|
ax.set_ylim(0, radius) |
|
|
|
|
|
|
|
# Overlay white circle |
|
|
|
circle = patches.Circle( |
|
|
@ -261,6 +260,8 @@ def plot_preds( |
|
|
|
ax.add_patch(circle) |
|
|
|
|
|
|
|
if FONTSIZE > 0.0: |
|
|
|
center = (0, 0) |
|
|
|
fcolor = "black" |
|
|
|
ax.annotate( |
|
|
|
f"{KIND.upper()}", |
|
|
|
center, |
|
|
@ -272,7 +273,7 @@ def plot_preds( |
|
|
|
|
|
|
|
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() |
|
|
|
|
|
|
|
|
|
|
|