赞
踩
- import numpy as np
- from matplotlib import pyplot as plt
- import pylab as pl
-
- x1 = [30.89, 17.24, 13.82, 13.00, 12.47] # Make x, y arrays for each graph
- y1 = [47.769, 46.055, 44.176, 41.844, 39.476]
- x2 = [29.21, 16.76, 13.70, 13.02, 12.21]
- y2 = [47.761, 46.02, 44.096, 41.744, 39.359]
-
- pl.plot(x1, y1, 'r', label='original') # use pylab to plot x and y : Give your plots names
- pl.plot(x2, y2, 'g', label='optimization')
-
- pl.title('P-T') # give plot a title
- pl.xlabel('TIME') # make axis labels
- pl.ylabel('G_PSNR')
-
- pl.xlim(10.0, 35.0) # set axis limits
- pl.ylim(35.0, 50.0)
- pl.legend()
- pl.show() # show the plot on the screen
-
-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。