AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.02k stars 11.28k forks source link

thinkplot.Show() not working #154

Closed susmit31 closed 4 years ago

susmit31 commented 4 years ago

I was typing through the codes of the second chapter where plotting hists are introduced. Now, as per the book, thinkplot.Hist(hist) should NOT plot the histogram, only feed its blueprint to the machine. Typing in thinkplot.Show() afterwards should display the hist. However, whenever I hit enter after typing thinkplot.Hist(hist), the plot automatically is displayed. If I then close that graphics window and type in, say, thinkplot.Show(xlabel='x',ylabel='y'), a blank graphics window appears. What's the matter with the code?