Add hint about plt.show()
or similar to get plots to show in terminal
#50
Labels
plt.show()
or similar to get plots to show in terminal
#50
It seems I am missing something very basic.
The "
Basic file I/O with Uproot
" chapter contains:h.to_hist().plot()
The "
TTree details
" chapter contains (twice):masshist.plot()
It seems you expect that these histograms are "displayed", but I get completely nothing physically drawn on my screen (a local X11 server and a "
ssh -X -Y
" connection to a remote Linux machine with an "activated" Python 3.11.4 conda-forge environment).Well, I can get them "displayed", if I afterward execute (but that is not shown in the tutorial):
import matplotlib.pyplot as plt; plt.show()
In the "
Histogram manipulations and fitting
" chapter, in the "Matplotlib
" section, there is (and that is the only place in the tutorial which importsmatplotlib
):But this does not physically draw it either (the final "
plt.show()
" is missing).The text was updated successfully, but these errors were encountered: