TLegend is a class in the ROOT data analysis framework for C++ that allows for the creation of legends for plots. The SetLineStyle method is used to change the line style of the legend text or marker.
Example 1: TLegend *legend = new TLegend(0.65,0.75,0.9,0.9); legend->SetLineStyle(kDashed); // sets the line style of the legend text to dashed
Example 2: TLegend *legend = new TLegend(0.65,0.75,0.9,0.9); legend->SetLineStyle(kSolid); // sets the line style of the legend text to solid
Example 3: TLegend *legend = new TLegend(0.65,0.75,0.9,0.9); legend->SetLineStyle(2); // sets the line style of the legend text to a user-defined integer value for the line style
The TLegend class and its SetLineStyle method are part of the ROOT data analysis framework library package.
C++ (Cpp) TLegend::SetLineStyle - 30 examples found. These are the top rated real world C++ (Cpp) examples of TLegend::SetLineStyle extracted from open source projects. You can rate examples to help us improve the quality of examples.