plt.scatter各參數詳解

  1、scatter函數原型 2、其中散點的形狀參數marker如下:   3、其中顏色參數c如下: 4、基本的使用方法如下: #導入必要的模塊 import numpy as np import matplotlib.pyplot as plt #產生測試數據 x = np.arange(1,10) y = x fig = plt.figure() ax1 = fig.add_subplot(
相關文章
相關標籤/搜索