1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/nanxun-pythonshujukeshihuajiantu

Клонировать/Скачать
网格.py 387
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
nanxun Отправлено 05.07.2017 09:22 cf2f5f0
#coding:utf-8
import matplotlib.pyplot as plt
import numpy as np
x=np.random.randint(1,1000,20)
y=np.random.randint(1000,100000,20)
fig1=plt.figure()
ax1=fig1.add_subplot(111)
'''
无需加True---显示网格(交互式需要)
color='r', 颜色为红色
linestyle='-', 线型为实线
linewidth=2 线宽为2
'''
ax1.grid(color='r',linestyle='-',linewidth=2)
ax1.scatter(x,y)
plt.show()

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/nanxun-pythonshujukeshihuajiantu.git
git@api.gitlife.ru:oschina-mirror/nanxun-pythonshujukeshihuajiantu.git
oschina-mirror
nanxun-pythonshujukeshihuajiantu
nanxun-pythonshujukeshihuajiantu
master