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?
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?