root icon indicating copy to clipboard operation
root copied to clipboard

Have the plotting canvas from experiments

Open munozariasjm opened this issue 2 years ago • 1 comments

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

munozariasjm avatar Jul 15 '22 13:07 munozariasjm

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 avatar Jul 19 '22 15:07 couet

@munozariasjm Have you tried the TExec idea ?

couet avatar Mar 08 '23 17:03 couet

@munozariasjm can we close this request?

couet avatar Jun 20 '23 11:06 couet

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] avatar Jun 22 '23 06:06 github-actions[bot]

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] avatar Jun 23 '23 06:06 github-actions[bot]

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] avatar Jun 26 '23 06:06 github-actions[bot]

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] avatar Jun 27 '23 06:06 github-actions[bot]