# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
fig, ax =plt.subplots();
# 绘制散点图
ax.plot(10*np.random.randn(100),10*np.random.randn(100), 'o');
ax.set_title('www.linuxidc.com');
plt.show();
效果图如下:
# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
fig, ax =plt.subplots();
# 绘制散点图
ax.plot(10*np.random.randn(100),10*np.random.randn(100), 'o');
ax.set_title('www.linuxidc.com');
plt.show();
效果图如下:
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/804f06f7307b91830d0a73628ebed69a.html