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: umap:
for seed in `seq 0 100`; do \ 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 done
lex: sort_lex:
python scripts/sortcolor.py -s lex --dpi 300 --size 6 --radius 0.5 python scripts/sortcolor.py -s lex --dpi 300 --fontsize 12
arrange: sort_hsv:
python scripts/sortcolor.py -s hsv --dpi 100 --size 3 && \ python scripts/sortcolor.py -s hsv --dpi 300
sh scripts/place.sh
clean: clean:

7
scripts/sortcolor.py

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

Loading…
Cancel
Save