2017-01-25 73 views

回答

0

我猜你只是在尋找一個不同的圖表類型。從here改編:

# Import 
import numpy as np 
import matplotlib.pyplot as plt 

# Generate random normally distributed data 
data=np.random.randn(10000) 

# Histogram 
heights,bins = np.histogram(data,bins=50) 

# Normalize 
heights = heights/float(sum(heights)) 
binMids=bins[:-1]+np.diff(bins)/2. 
plt.plot(binMids,heights) 

將會產生這樣的:

enter image description here

希望這是你在找什麼。