root-project / root

The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
https://root.cern
Other
2.71k stars 1.28k forks source link

Have the plotting canvas from experiments #10968

Closed munozariasjm closed 1 year ago

munozariasjm commented 2 years ago

Hi all!

I was thinking that it would be very nice to have the option to have the canvas for different styles from the most common experiments, this will allow you to easily match the style of your plots.

For example, if you want your functions to look like the ones normally generated in ATLAS you should be able to do something like

root [0] TGraph g;
root [1] for (auto i : {0,1,2,3,4}) g.SetPoint(i,i,i*i)
root [2] g.SetCanvas("ATLAS")
root [3] g.Draw("APL")

This idea comes from the mplhep library. They support canvas from a variety of collaborations such as ATLAS, ALICE, CMS...

Best regards

couet commented 2 years ago

The style is now global. It is set by gStyle. All the canvases have the same style. I guess a proper TExec placed at the beginning of the TCanvas list of primitives should be a workaround. But this needs to be checked.

couet commented 1 year ago

@munozariasjm Have you tried the TExec idea ?

couet commented 1 year ago

@munozariasjm can we close this request?

github-actions[bot] commented 1 year ago

Hi @munozariasjm, @couet,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely, :robot:

github-actions[bot] commented 1 year ago

Hi @munozariasjm, @couet,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely, :robot:

github-actions[bot] commented 1 year ago

Hi @munozariasjm, @couet,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely, :robot:

github-actions[bot] commented 1 year ago

Hi @munozariasjm, @couet,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely, :robot: