Improve plotting

This commit is contained in:
2024-03-31 23:08:19 +02:00
parent 8cad89d649
commit 30e775d8a2
122 changed files with 4640 additions and 1149 deletions
@@ -52,12 +52,17 @@ std::vector<float> AzimuthalIntegrationProfile::GetResult() const {
return rad_int_profile;
}
Plot AzimuthalIntegrationProfile::GetPlot() const {
void AzimuthalIntegrationProfile::SetTitle(const std::string &input) {
title = input;
}
MultiLinePlot AzimuthalIntegrationProfile::GetPlot() const {
std::unique_lock<std::mutex> ul(m);
Plot ret;
ret.x = bin_to_q;
ret.y = GetResult();
MultiLinePlot ret(1);
ret[0].x = bin_to_q;
ret[0].y = GetResult();
ret[0].title = title;
return ret;
}