r/IPython • u/largelcd • 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
View all comments
Show parent comment
1
u/largelcd Feb 11 '20
Understood. Thanks.