Question: I'm trying to make a histogram in python and I keep getting this error message. What can I do to fix this? etmp 1> 1

 I'm trying to make a histogram in python and I keepgetting this error message. What can I do to fix this? etmp I'm trying to make a histogram in python and I keep getting this error message. What can I do to fix this?

etmp 1> 1 import numpy as np 2 import matplotlib.pyplot as plt Datalist= (2.86, 2.75, 2.82, 2.91, 2.71, 2.84, 2.92, 2.80, 2.89, 2.77, 2.98, 2.82, 2.69, 2.84, 2.91, 3.02, 2.99, 2.83, 2.79 2.76) 5 Datanp.array (Datalist) 7 avgsum (Data)/len (Data) 8 print ( 'average of data:', avg) 10 axplt.axes(!) 12 ax.hist(Data, bins-range (2.65,3.05,8), 13 ax.set xlabel( 'Data Value 15 alpha-.5, histtype-'stepfilled') 14 ax.set ylabel ( 'number of counts per bin of 8) 16 plt.savefig("SampleHistPlt.png") 17 plt.show() 18 19

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!