Browse Source

minor tweaks, check annotations

new-sep-loss
Michael Pilosov, PhD 9 months ago
parent
commit
00cba285c8
  1. 11
      makefile
  2. 7
      scripts/sortcolor.py

11
makefile

@ -52,16 +52,15 @@ animate:
umap:
for seed in `seq 0 100`; do \
python scripts/sortcolor.py -s umap --seed $$seed --dpi 100 --size 6 ; \
python scripts/sortcolor.py -s umap --seed $$seed --dpi 300 ; \
done
lex:
python scripts/sortcolor.py -s lex --dpi 300 --size 6 --radius 0.5
sort_lex:
python scripts/sortcolor.py -s lex --dpi 300 --fontsize 12
arrange:
python scripts/sortcolor.py -s hsv --dpi 100 --size 3 && \
sh scripts/place.sh
sort_hsv:
python scripts/sortcolor.py -s hsv --dpi 300
clean:

7
scripts/sortcolor.py

@ -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()

Loading…
Cancel
Save