개정판 087abd78
issue #000: sort code
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
526 | 526 |
|
527 | 527 |
win = pg.PlotWidget(background = 'w', title = 'Trained Characters') |
528 | 528 |
win.setMouseEnabled(False, False) |
529 |
#plot = pg.plot(range(len(categories)), barList, title = 'Trained Characters', pen = 'b') |
|
529 |
|
|
530 | 530 |
plot = pg.BarGraphItem(x = range(len(categories)), height = barList, width = 0.6, brush = 'b') |
531 | 531 |
win.addItem(plot) |
532 |
#win.resize(self.ui.splitter.widget(0).width(), 110) |
|
533 | 532 |
xax = win.getAxis('bottom') |
534 | 533 |
yax = win.getAxis('left') |
535 | 534 |
xax.setPen('k') |
536 | 535 |
yax.setPen('k') |
537 | 536 |
xax.setTicks(categoriesDict) |
538 | 537 |
win.showGrid(x = True, y = True) |
539 |
|
|
538 |
|
|
540 | 539 |
if self.ui.splitter.replaceWidget(1, win) is None: |
541 | 540 |
self.ui.splitter.addWidget(win) |
542 | 541 |
#self.ui.splitter.widget(1).resize(self.ui.splitter.widget(1).width(), 200) |
내보내기 Unified diff