Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 histogram error
#1
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
Quote
#2
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'>
>>>
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to fit a 2D histogram like in ROOT? Zandar 2 409 Aug-06-2019, 03:01 PM
Last Post: Zandar
  histogram with matplotlib vaugirard 10 1,466 Jun-01-2018, 04:13 AM
Last Post: vaugirard
  Histogram help dandatadan 1 761 Nov-25-2017, 06:07 AM
Last Post: heiner55
  mcerp: error while plotting a histogram rakhmadiev 2 1,948 Apr-02-2017, 09:08 PM
Last Post: rakhmadiev
  plotting histogram vvv 1 1,297 Mar-10-2017, 11:47 PM
Last Post: zivoni

Forum Jump:


Users browsing this thread: 1 Guest(s)