Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QC-1155 Allow for multiple graphs in one canvas in TrendingTask #2338

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

knopers8
Copy link
Collaborator

This allows to draw more than one histogram or TGraph on one plot (canvas) in TrendingTask. If more than one graph is used, a legend is automatically added to the plot.

The configuration scheme has been adapted accordingly to allow for multiple graphs. The old way is still supported, but has been removed from documentation to encourage users to move to the new scheme.

There is also a possibility to select custom color palette expected, but we will need ROOT bump to 6.32 before this can be enabled.

Some refactoring is included as well.

This allows to draw more than one histogram or TGraph on one plot (canvas) in TrendingTask.
If more than one graph is used, a legend is automatically added to the plot.

The configuration scheme has been adapted accordingly to allow for multiple graphs.
The old way is still supported, but has been removed from documentation to encourage users to move to the new scheme.

There is also a possibility to select custom color palette expected, but we will need ROOT bump to 6.32 before this can be enabled.

Some refactoring is included as well.
Copy link
Collaborator

@Barthelemy Barthelemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not spot any mistake.

I can only imagine the time you spent on this. Finding out all the quirks of ROOT...
Thanks !

@@ -66,8 +64,15 @@ class TrendingTask : public PostProcessingInterface
}
} mMetaData;

static void setUserAxisLabel(TAxis* xAxis, TAxis* yAxis, const std::string& graphAxisLabel);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure, but shouldn't it be setUserAxesLabel ? there are several axes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, you wrote this method :D but agreed, I will rename

@knopers8 knopers8 enabled auto-merge (squash) June 17, 2024 13:15
@knopers8 knopers8 merged commit 71b0269 into AliceO2Group:master Jun 17, 2024
7 checks passed
@knopers8 knopers8 deleted the multiple-trends branch June 18, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants