[python]绘制散点图

import matplotlib.pyplot as plt
#x1=[446,447,448,449,449,450,452,453,453,453,454,454,455,456,456,456,457,458,459,460,461,462,463,464,465,466,467,468,469,469,470,471,472,473,474,475,476,477,478,479,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,502,503,504,505,506,506,507,508,509,510,511,512,512,513,513,514,515,516,517,518,518,519,520,521,522,523,524,524,525,526,527,528,529,530,531,532,533,533,534,535]
#y1=[0.999864,0.999968,0.014804,0.927419,0.007206,0.999958,0.969503,0.999110,0.030524,0.006206,0.977204,0.017904,0.999392,0.935332,0.163386,0.008797,0.984002,0.545610,0.998482,0.999808,0.999700,0.999695,0.999867,0.981694,0.999734,0.999931,0.999963,0.999963,0.984550,0.005537,0.856013,0.999978,0.999961,0.999769,0.999857,0.999977,0.999946,0.999909,0.999755,0.999956,0.006721,0.999959,0.999923,0.999788,0.999889,0.999911,0.998911,0.999247,0.999956,0.999958,0.999920,0.999966,0.999878,0.999916,0.999941,0.999948,0.999952,0.999937,0.999954,0.999960,0.999977,0.999958,0.999956,0.999795,0.006906,0.997748,0.999954,0.999890,0.999827,0.010697,0.999683,0.999907,0.999651,0.999460,0.999613,0.999399,0.010861,0.999411,0.007218,0.999800,0.999918,0.999665,0.999925,0.999625,0.449311,0.999587,0.999685,0.999954,0.999515,0.999738,0.999894,0.006252,0.999898,0.999843,0.999948,0.999780,0.997901,0.999755,0.999686,0.999860,0.999697,0.015203,0.999851,0.999656]
#x2=[10001,10002,10003,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10021,10022,10023,10023,10024,10025,10025,10026,10027,10027,10028,10029,10030,10030,10031,10032,10033,10034,10035,10035,10036,10037,10038,10039,10039,10040,10041,10042,10043,10044,10045,10046,10047,10048,10049,10050,10050,10051,10052,10053,10055,10056,10057,10058,10059,10060,10060,10060,10060,10061,10061,10061,10062,10063,10064,10065,10066,10067,10068,10069,10069,10070,10071,10072,10073,10074,10075,10076,10077,10078,10079,10080,10081,10082,10082,10083,10083,10084,10084,10085,10085,10086,10087,10088,10089,10090]
#y2=[0.999984,0.999971,0.999919,0.999950,0.999961,0.999791,0.999878,0.999966,0.999944,0.999929,0.999951,0.999980,0.999927,0.999896,0.999948,0.999814,0.999941,0.999954,0.999933,0.999889,0.999960,0.005433,0.999948,0.999919,0.015391,0.999790,0.999943,0.007084,0.999353,0.999610,0.005297,0.999603,0.999479,0.997951,0.015318,0.999250,0.998841,0.999457,0.998279,0.999093,0.020859,0.999447,0.997261,0.999309,0.999966,0.009356,0.999951,0.999904,0.999919,0.999886,0.999723,0.999969,0.999974,0.999992,0.999978,0.999923,0.999980,0.014183,0.999960,0.999963,0.999981,0.999985,0.999980,0.999981,0.999978,0.999991,0.999713,0.028426,0.019103,0.013280,0.999871,0.009174,0.005041,0.999823,0.999904,0.999918,0.999802,0.999920,0.999918,0.999964,0.999876,0.013949,0.999925,0.999969,0.999906,0.999880,0.999865,0.999912,0.999929,0.999797,0.999843,0.999932,0.999893,0.999928,0.999672,0.060654,0.999912,0.010192,0.999563,0.314622,0.999779,0.227534,0.999951,0.999755,0.999677,0.999842,0.992764]
#plt.plot(x1,y1,'ro',color='red')
plt.plot(x2,y2,'ro',color='black')
plt.ylabel('Prob')
plt.xlabel('Images_number')
plt.title('The test-result curves')
plt.legend(loc='位置')
plt.show()

 

你可能感兴趣的:(Python)