Enum for TAttLine:SetLineStyle(Style_t)

Can we use enum for TAttLine:SetLineStyle(Style_t), e.g. h -> SetLineStyle(kDotted) instead of h -> SetLineStyle(2)?


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


TAttFill does not have the method SetLineStyle

Apologies. I had TAttLine in mind.

The enum for line styles is:

enum ELineStyle { kSolid = 1, kDashed, kDotted, kDashDotted };

kDotted should work … kDotted corresponds to line style number 3.

1 Like

This could be added to information at https://root.cern/doc/master/classTAttLine.html

Done.
It will be visible tomorrow in the ref guide.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.