Skip to content
Open

Ttt #320

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions spyrit/misc/disp.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def imagesc(
Img,
title="",
colormap=None,
show=True,
show=False,
figsize=None,
fig=None,
ax=None,
Expand Down Expand Up @@ -227,6 +227,7 @@ def imagecomp(
title2="",
colormap1=plt.cm.gray,
colormap2=plt.cm.gray,
show=False,
Copy link

Copilot AI Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comma after the show=False parameter. This will cause a syntax error. Add a comma after show=False on line 230.

Copilot uses AI. Check for mistakes.
):
f, (ax1, ax2) = plt.subplots(1, 2)
im1 = ax1.imshow(Img1, cmap=colormap1)
Expand All @@ -240,7 +241,9 @@ def imagecomp(
cax = plt.axes([0.915, 0.3, 0.025, 0.4])
plt.colorbar(im2, cax=cax)
plt.subplots_adjust(left=0.08, wspace=0.5, top=0.9, right=0.9)
plt.show()

if show:
plt.show()


def imagepanel(
Expand All @@ -257,6 +260,7 @@ def imagepanel(
colormap2=plt.cm.gray,
colormap3=plt.cm.gray,
colormap4=plt.cm.gray,
show=False,
):
Copy link

Copilot AI Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comma after the show=False parameter. This will cause a syntax error. The function signature should be:

show=False,

Copilot uses AI. Check for mistakes.
fig, axarr = plt.subplots(2, 2, figsize=(20, 10))
plt.suptitle(suptitle, fontsize=16)
Expand All @@ -282,7 +286,8 @@ def imagepanel(
plt.colorbar(im4, cax=cax)

plt.subplots_adjust(left=0.08, wspace=0.5, top=0.9, right=0.9)
plt.show()
if show:
plt.show()


def plot(x, y, title="", xlabel="", ylabel="", color="black"):
Expand Down
Loading