-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVisual_zz.py
587 lines (530 loc) · 23 KB
/
Visual_zz.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
from DataPreProcessing import *
from pylab import *
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
import numpy as np
import math
myfont = fm.FontProperties(fname="C:\\Windows\\Fonts\\simsun.ttc", size=14)
matplotlib.rcParams["axes.unicode_minus"] = False
xmajorLocator = MultipleLocator(5) #将x主刻度标签设置为5的倍数
xminorLocator = MultipleLocator(1) #将x轴次刻度标签设置为1的倍数
barwidth=0.35#柱状图的宽度
class Visual_zz:
def show_tongt_wd(self):
y = DataPreprocessing().get_tongt_wd()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y,alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy/2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('筒体温度/℃', fontproperties=myfont)
title('筒体温度变化情况\n', fontproperties=myfont)
show()
def show_weilc(self):
y = DataPreprocessing().get_weilc()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('喂料秤', fontproperties=myfont)
title('喂料秤变化情况\n', fontproperties=myfont)
show()
def show_youlg(self):
y = DataPreprocessing().get_youlg()
ymin, ymax = min(y), max(y)#由于部分数据缺失导致报错
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('游离钙', fontproperties=myfont)
title('游离钙变化情况\n', fontproperties=myfont)
show()
def show_yaosu(self):
y = DataPreprocessing().get_yaosu()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('窑速', fontproperties=myfont)
title('窑速变化情况\n', fontproperties=myfont)
show()
def show_yaotc(self):
y = DataPreprocessing().get_yaotc()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('窑头秤', fontproperties=myfont)
title('窑头秤变化情况\n', fontproperties=myfont)
show()
def show_yaowc(self):
y = DataPreprocessing().get_yaowc()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('窑尾秤', fontproperties=myfont)
title('窑尾秤变化情况\n', fontproperties=myfont)
show()
def show_yijt_wd(self):
y1 = DataPreprocessing().get_yijt_wdA()
y2 = DataPreprocessing().get_yijt_wdB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("一级筒A、B温度变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B温度', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_yijt_yq(self):
y1 = DataPreprocessing().get_yijt_yqA()
y2 = DataPreprocessing().get_yijt_yqB()
ymin, ymax = min(y1+y2), max(y1+y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("一级筒A、B压强变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index=np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B压强', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_erjt_wd(self):
y1 = DataPreprocessing().get_erjt_wdA()
y2 = DataPreprocessing().get_erjt_wdB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("二级筒A、B温度变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B温度', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_erjt_yq(self):
y1 = DataPreprocessing().get_erjt_yqA()
y2 = DataPreprocessing().get_erjt_yqB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("二级筒A、B压强变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B压强', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_sanjt_wd(self):
y1 = DataPreprocessing().get_sanjt_wdA()
y2 = DataPreprocessing().get_sanjt_wdB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("三级筒A、B温度变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B温度', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_sanjt_yq(self):
y1 = DataPreprocessing().get_sanjt_yqA()
y2 = DataPreprocessing().get_sanjt_yqB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("三级筒A、B压强变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B压强', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_sijt_wd(self):
y1 = DataPreprocessing().get_sijt_wdA()
y2 = DataPreprocessing().get_sijt_wdB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("四级筒A、B温度变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B温度', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_sijt_yq(self):
y1 = DataPreprocessing().get_sijt_yqA()
y2 = DataPreprocessing().get_sijt_yqB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("四级筒A、B压强变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B压强', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_wujt_wd(self):
y1 = DataPreprocessing().get_wujt_wdA()
y2 = DataPreprocessing().get_wujt_wdB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("五级筒A、B温度变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B温度', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_wujt_yq(self):
y1 = DataPreprocessing().get_wujt_yqA()
y2 = DataPreprocessing().get_wujt_yqB()
ymin, ymax = min(y1 + y2), max(y1 + y2)
dy = ymax - ymin
x = range(0, 72)
plt.figure(figsize=(7, 4), dpi=140)
plt.title("五级筒A、B压强变化情况", fontproperties=myfont)
plt.grid(True)
ax_1 = plt.subplot(111)
index = np.arange(len(x))
ax_1.bar(index, y1, width=barwidth, alpha=0.5, color="b", label="A")
ax_1.bar(index + barwidth, y2, width=barwidth, alpha=0.5, color="r", label="B")
ax_1.legend(loc="upper left", prop=myfont, shadow=True)
ax_1.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax_1.set_ylabel('A/B压强', fontproperties=myfont)
ax_1.set_xlabel('time/h', fontproperties=myfont)
ax_1.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax_1.xaxis.set_minor_locator(xminorLocator) # 次刻度
plt.show()
def show_yaow_wd(self):
y = DataPreprocessing().get_yaow_wd()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('窑尾温度', fontproperties=myfont)
title('窑尾温度变化情况\n', fontproperties=myfont)
show()
def show_fenjl_wd(self):
y = DataPreprocessing().get_fenjl_wd()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('分解炉温度', fontproperties=myfont)
title('分解炉温度变化情况\n', fontproperties=myfont)
show()
def show_fenjl_yq(self):
y = DataPreprocessing().get_fenjl_yq()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('分解炉压强', fontproperties=myfont)
title('分解炉压强变化情况\n', fontproperties=myfont)
show()
def show_yicfj(self):
y = DataPreprocessing().get_yicfj()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('一次风机', fontproperties=myfont)
title('一次风机变化情况\n', fontproperties=myfont)
show()
def show_yaotyl_yq(self):
y = DataPreprocessing().get_yaotyl_yq()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('窑头压力', fontproperties=myfont)
title('窑头压力变化情况\n', fontproperties=myfont)
show()
def show_bilj_ydyl(self):
y = DataPreprocessing().get_bilj_ydyl()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机一段压力', fontproperties=myfont)
title('篦冷机一段压力变化情况\n', fontproperties=myfont)
show()
def show_bilj_ydS1(self):
y = DataPreprocessing().get_bilj_ydS1()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机一段S1', fontproperties=myfont)
title('篦冷机一段S1变化情况\n', fontproperties=myfont)
show()
def show_bilj_ydI1(self):
y = DataPreprocessing().get_bilj_ydI1()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机一段I1', fontproperties=myfont)
title('篦冷机一段I1变化情况\n', fontproperties=myfont)
show()
def show_bilj_erdS1(self):
y = DataPreprocessing().get_bilj_erdS1()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机二段S1', fontproperties=myfont)
title('篦冷机二段S1变化情况\n', fontproperties=myfont)
show()
def show_bilj_erdI1(self):
y = DataPreprocessing().get_bilj_erdI1()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机二段I1', fontproperties=myfont)
title('篦冷机二段I1变化情况\n', fontproperties=myfont)
show()
def show_bilj_sdS1(self):
y = DataPreprocessing().get_bilj_sdS1()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机三段S1', fontproperties=myfont)
title('篦冷机三段S1变化情况\n', fontproperties=myfont)
show()
def show_bilj_sdI1(self):
y = DataPreprocessing().get_bilj_sdI1()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('篦冷机三段I1', fontproperties=myfont)
title('篦冷机三段I1变化情况\n', fontproperties=myfont)
show()
def show_sancf_yl(self):
y = DataPreprocessing().get_sancf_yl()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('三次风压力', fontproperties=myfont)
title('三次风压力变化情况\n', fontproperties=myfont)
show()
def show_gaowfj_zs(self):
y = DataPreprocessing().get_gaowfj_zs()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('高温风机转速', fontproperties=myfont)
title('高温风机转速变化情况\n', fontproperties=myfont)
show()
def show_gaowfj_dl(self):
y = DataPreprocessing().get_gaowfj_dl()
ymin, ymax = min(y), max(y)
dy = ymax - ymin
x = range(0, 72)
ax = subplot(111)
ax.bar(x, y, alpha=0.5, color="b")
ax.xaxis.set_major_locator(xmajorLocator) # 主刻度
ax.xaxis.set_minor_locator(xminorLocator) # 次刻度
ax.grid(True) # 网格
ax.set_ylim([ymin - dy / 2, ymax + dy / 2])
ax.set_xlabel('time/h')
ax.set_ylabel('高温风机电流', fontproperties=myfont)
title('高温风机电流变化情况\n', fontproperties=myfont)
show()
Visual_zz().show_erjt_yq()