[英]Beginner question: Python scatter plot with normal distribution not plotting
我有我所計算出的隨機的整數數組mean
和std
,標准偏差。 接下來,我在這個(平均值,標准差)的正態分布內有一個隨機數數組。
我現在想使用 matplotlib 繪制正態分布數組的散點圖。 你能幫忙嗎?
代碼:
random_array_a = np.random.randint(2,15,size=75) #random array from [2,15)
mean = np.mean(random_array_a)
std = np.std(random_array_a)
sample_norm_distrib = np.random.normal(mean,std,75)
散點圖需要 x 和 y 軸......但它應該是什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.