Skip to content

Commit

Permalink
Use gray cmap
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Dec 17, 2024
1 parent 460556c commit f10d198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchgeo/datasets/gbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def plot(
ncols = 2 if 'prediction' in sample else 1
fig, axs = plt.subplots(ncols=ncols, squeeze=False)

axs[0, 0].imshow(sample['mask'])
axs[0, 0].imshow(sample['mask'], cmap='gray')
axs[0, 0].axis('off')
if show_titles:
axs[0, 0].set_title('Mask')

if 'prediction' in sample:
axs[0, 1].imshow(sample['prediction'])
axs[0, 1].imshow(sample['prediction'], cmap='gray')
axs[0, 1].axis('off')
if show_titles:
axs[0, 1].set_title('Prediction')
Expand Down

0 comments on commit f10d198

Please sign in to comment.