histogram error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: histogram error (/thread-11456.html) |
histogram error - alyssaantarctica - Jul-09-2018 I need to make a histogram of the log10 of a variable r. So I made variable a = np.log10®, and tried to do: plt.hist(a, fill = False) it then gave the error " range parameter must be finite." PLEASE HELP ME!! thanks so much RE: histogram error - Larz60+ - Jul-09-2018 the way you define a, it is the function np,log10, not a value: >>> import numpy as np >>> a = np.log10 >>> type(a) <class 'numpy.ufunc'> >>> |