4.16-rasm - O'zgartirilgan tarqalish sxemasi
Rang va o'lcham bilan ishlashni ko'rsatadigan misol:
matplotlib.colors ni mcolors bc = mcolors.BASE_COLORS sifatida import qiling
x = np.arange(0, 10.5, 0.25) y = np.cos(x)
num_set = np.random.randint(1, len(mcolors.BASE_COLORS), len(x))
o'lchamlar = son_to'plam
* 35
ranglar = [roÿyxat(bc.keys())[i] raqamli toÿplamdagi i uchun ]
plt.scatter(x, y, s=o'lchamlar, alfa=0,4, c=ranglar, chiziq kengligi=2, chekka ranglari="yuz")
plt.plot(x, y, 'g--', alfa=0,4)
4.17-rasm - O'zgartirilgan tarqalish sxemasi
Tarqalgan chizmalar bilan ishlashning qo'shimcha variantlari
O'zingizning belgilaringizni yaratish:
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_custom_symbol.html#sphx-
glr-gallery-lines-bars-va-markers-scatter-custom-symbol-py
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_piecharts.html#sphx-glr-
galereya-chiziqlar-barlar-va-markerlar-scatter-piecharts-py
Tarqatish gistogrammasi bilan aniq grafik:
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_hist.html#sphx-glr-gallery- chiziqlar-bar-va-markerlar-tarqalishi-his-py
Mintaqaga qarab nuqtalarni ko'rsatishni sozlash:
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_masked.html#sphx-glr-
galereya-chiziqlar-barlar-va-markerlar-tarqalishi-masked-py
Afsona bilan ishlash:
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_with_legend.html#sphx-glr- galereya-chiziqlar-barlar-va-markerlar-afsona-py bilan-tarqalishi
Dostları ilə paylaş: |