Description of the problem
When calling matplotlib to draw an image in PyCharm, the default image will be in theConsole Output(as shown), when plottingMore imagesThe console output method is very unintuitive.
Problem solving
Hopefully, when you call matplotlib to draw an image in PyCharm, you can just pop up the Figure window.
Click File→Settings→Python Scientific in the menu bar. The checkbox that appears on the right side will be output on the console if it is checked (the default), and the image will be popped up directly if it is unchecked.
Supplementary note ()
When the blogger started to learn Matplotlib systematically, the code did not (and did not need to (Jupyter Notebook defaults to outputting the last line of the command)) enter () because he was looking at the learning materials on Jupyter Notebook.
The careless and sloppy blogger just followed the lead and entered the same code in PyCharm and ran it, no errors were reported, but there has been no image output.
Based on this, the blogger searched to find out a lot about the call matplotlib plotting no image pop-up solution, with a variety of ways to solve the operation, an operation as fierce as a tiger, no effect.
It finally dawned on me that Bean Blogger forgot the last () command...
import as plt import matplotlib as mpl fig, ax = () # Create a figure containing an axes ([1, 2, 3, 4], [1, 4, 2, 3]) # Drawing images ()
summarize
to this article on the PyCharm call matplotlib plotting image pop-up problem is introduced to this article, more related PyCharm call matplotlib plotting image pop-up content, please search for my previous posts or continue to browse the following related articles I hope you will support me in the future!