tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Fix plt.show() display issue in data_tutorial.py

Open patrocinio opened this issue 1 month ago • 1 comments

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.

patrocinio avatar Dec 10 '25 22:12 patrocinio