Last answered:

08 Jul 2022

Posted on:

07 Jul 2022

0

Bar graph shows in Plots above the IPython Console as shown in lecture

First, matplotlib was not recognized until I imported what I found in Stack OverFlow;

import pip
pip.main(["install","matplotlib"])



Now my graph shows, but it is in the Plots window, not the IPython Console like the lecture. Does that matter? As long as I can see it?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

08 Jul 2022

0

Hey Carly,

Thank you for your question!

The command

%matplotlib inline

displays the figure inline, like so:
image.png

The command

%matplotlib

would instead display the figure in a separate window:
image.png

Hope this helps!

Kind regards,
365 Hristina

Submit an answer