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

Method plotDataDistributionFit

src/frontend/spreadsheet/SpreadsheetView.cpp:2221–2233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2219}
2220
2221void SpreadsheetView::plotDataDistributionFit(QAction* action) {
2222 auto* dlg = new PlotDataDialog(m_spreadsheet, Plot::PlotType::Histogram);
2223 const auto distribution = static_cast<nsl_sf_stats_distribution>(action->data().toInt());
2224 dlg->setFitDistribution(distribution);
2225
2226 // use all spreadsheet columns if no columns are selected
2227 auto columns = selectedColumns(true);
2228 if (columns.isEmpty())
2229 columns = m_spreadsheet->children<Column>();
2230 dlg->setSelectedColumns(columns);
2231
2232 dlg->exec();
2233}
2234
2235void SpreadsheetView::fillSelectedCellsWithRowNumbers() {
2236 const auto& columns = selectedColumns(false);

Callers

nothing calls this directly

Calls 5

setFitDistributionMethod · 0.80
setSelectedColumnsMethod · 0.80
execMethod · 0.80
dataMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected