Skip to content

Commit

Permalink
remove plotting assets
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Dec 21, 2024
1 parent a84ddb4 commit a27624d
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 24 deletions.
Binary file removed waveorder/visuals/assets/gellman/0.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/1.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/2.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/3.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/4.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/5.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/6.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/7.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/gellman/8.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/rose.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/stokes/0.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/stokes/1.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/stokes/2.png
Binary file not shown.
Binary file removed waveorder/visuals/assets/stokes/3.png
Binary file not shown.
33 changes: 9 additions & 24 deletions waveorder/visuals/matplotlib_visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,30 +73,15 @@ def plot_5d_ortho(
for j in range(n_cols):
# Add labels
if (i == 0 and (j - 1) % 2 == 0) or (j == 0 and (i - 1) % 2 == 0):
if i == 0:
folder = "gellman"
index = column_labels[int((j - 1) / 2)]
else:
folder = "stokes"
index = row_labels[int((i - 1) / 2)]

if isinstance(index, int):
image_path = os.path.join(
os.path.dirname(__file__),
f"./assets/{folder}/{index}.png",
)
image = plt.imread(image_path)
axes[i, j].imshow(image)
else:
axes[i, j].text(
0.5,
0.5,
index,
horizontalalignment="center",
verticalalignment="center",
fontsize=10 * label_size,
color="black",
)
axes[i, j].text(
0.5,
0.5,
index,
horizontalalignment="center",
verticalalignment="center",
fontsize=10 * label_size,
color="black",
)

# Add data
if i > 0 and j > 0:
Expand Down

0 comments on commit a27624d

Please sign in to comment.