MCPcopy Create free account
hub / github.com/KDE/labplot / showQQPlot

Method showQQPlot

src/frontend/spreadsheet/StatisticsColumnWidget.cpp:372–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void StatisticsColumnWidget::showQQPlot() {
373 // add plot
374 auto* plot = addPlot(&m_qqPlotWidget);
375
376 auto axes = plot->children<Axis>();
377 for (auto* axis : std::as_const(axes)) {
378 if (axis->orientation() == Axis::Orientation::Horizontal)
379 axis->title()->setText(i18n("Theoretical Quantiles"));
380 else
381 axis->title()->setText(i18n("Sample Quantiles"));
382
383 axis->setMinorTicksDirection(Axis::noTicks);
384 }
385 QApplication::processEvents(QEventLoop::AllEvents, 100);
386
387 auto* qqPlot = new QQPlot(QString());
388 plot->addChild(qqPlot);
389 qqPlot->setDataColumn(m_column);
390
391 m_qqPlotInitialized = true;
392}
393
394void StatisticsColumnWidget::showBoxPlot() {
395 // add plot

Callers

nothing calls this directly

Calls 7

QStringClass · 0.50
orientationMethod · 0.45
setTextMethod · 0.45
titleMethod · 0.45
addChildMethod · 0.45
setDataColumnMethod · 0.45

Tested by

no test coverage detected