Skip to content

Possible improvements in plotting - warn users about problematic settings #20483

@TomasDado

Description

@TomasDado

Explain what you would like to see improved and how.

I think it would be useful if ROOT could somehow signal that what the user is trying to do regarding plotting will cause issues. I can give you an example that took me embarrasingly long to figure out.

I tried to produce plots with error bars using a different style like using Draw("[]") or ">" etc, but nothing really appeared on my canvas. After some time I realised it is because somewhere deep in my code I was importing the ATLAS style that sets: SetEndErrorSize(0.) i.e. removing the end error sizes. Something like this has happened to me multiple times in the past and it is always very annoying to catch if you are using some code that imports other stuff.

I am not sure what is the best approach here. Ideally, the code would print some warning when the user explicitely wants to plot something that has size 0, but I assume this is not so easy to fix. Other option us to get rid of these global settings but they are also super useful...

Anyway, I wanted to open this issue to see of someone has some good idea.

SImilarly, some warnings could be printed if the user explicitely asks to plot something but it outside of the canvas (this can be very non-intuitive for newcomers).

ROOT version

All versions

Installation method

any

Operating system

any

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions