Skip to content

Conversation

@patrocinio
Copy link
Contributor

Add plt.axis('off') before plt.show() to ensure the plot displays correctly in environments like Windows 11 with WSL and PyCharm Pro. This is a known matplotlib issue where an explicit axis operation is needed to trigger the display properly.

The axis('off') call also improves the visualization by hiding the axis ticks and labels, making the image cleaner.

Fixes #3497

Description

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

Add plt.axis('off') before plt.show() to ensure the plot displays correctly
in environments like Windows 11 with WSL and PyCharm Pro. This is a known
matplotlib issue where an explicit axis operation is needed to trigger the
display properly.

The axis('off') call also improves the visualization by hiding the axis
ticks and labels, making the image cleaner.

Fixes pytorch#3497
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 10, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3692

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 46fcc34 with merge base 7f8b6dc (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the cla signed label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - plt.show() not work

1 participant