pytorch / pytorch/tutorials

[BUG] - plt.show() not work

Open
#3,497 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

Add Link

https://github.com/pytorch/tutorials/blob/7135b5b71311fc6e4ac3b71d639762c226ea261e/beginner_source/basics/data_tutorial.py#L237

Describe the bug

in this repo file: beginner_source/basics/data_tutorial.py, line 237, plt.show() not work, I insert plt.axis() before plt.show(), then it works.

Describe your environment

My env: Windows 11, wsl, pycharm pro

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with beginner_source/basics/data_tutorial.py around line 237 and reproduce the plt.show() behavior in the reported Windows 11 WSL and PyCharm environment. Compare the behavior with and without the reported plt.axis() call; the work is done when the tutorial plot displays correctly without that workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.