一.用默认设置绘制折线图 import matplotlib.pyplot as plt x_values=list(range(11)) #x轴的数字是0到10这11个整数 y_values=[x**2 for x in x_values] #y轴的数字是x轴数字的平方 plt.plot(x_values,y_values,c='green') #用plot函数绘制折线图,线条颜色设置为绿色 plt.title('Squares',fontsize=24) #设置图表标题和标题字号 plt.t
http://wenku.baidu.com/link?url=SVVMVH8QlDIu2hVKDtoBYs6l0CnQvFnFHJJ9yexmYVKQqhz47qIr7aK7LOf8nN0qNdy8O1CaLXqfUB5dWr5AVdqTLUjYP6Zi9TdHjWS7_27 y 黄色 · 点线 m 粉红 ○ 圈线 c 亮蓝
Example import matplotlib.pyplot as plt import plotly.plotly as py # Learn about API authentication here: https://plot.ly/python/getting-started # Find your api_key here: https://plot.ly/settings/api y = [3, 10, 7, 5, 3, 4.5, 6, 8.1] N = len(y) x = r
http://blog.csdn.net/pipisorry/article/details/40005163 Matplotlib.pyplot画图实例 {使用pyplot模块} matplotlib绘制直线.条形/矩形区域 import numpy as np import matplotlib.pyplot as plt t , , .01) s = np.sin(2 * np.pi * t) plt.plot(t,s) # draw a thick red hline at y=0 th