r/IPython • • Feb 09 '20

Why _ = is needed when plotting histogram?

Hi, could you please let me know why _ = is needed here? What does it do exactly? Even without _=, the interpreter plots a histogram at the top left hand corner of the figure. Thanks

_ = ax1.hist(np.random.randn(50), bins=20)

2 Upvotes

3 comments sorted by