绘图marker
markerstyle设置的方法
TGraph *g1 = new TGraph;
g1->SetMarkerStyle(2); // g1->SetMarkerStyle(kDot);
g1->SetMarkerColor(1); // g1->SetMarkerColor(kBlack);
g1->SetMarkerSize(2); // scale the marker size
字符对应图标
Marker number | Marker shape | Marker name |
---|---|---|
1 | dot | kDot |
2 | + | kPlus |
3 | * | kStar |
4 | o | kCircle |
5 | x | kMultiply |
6 | small dot | kFullDotSmall |
7 | medium dot | kFullDotMedium |
8 | large scalable dot | kFullDotLarge |
9 -->19 | large scalable dot | |
20 | full circle | kFullCircle |
21 | full square | kFullSquare |
22 | full triangle up | kFullTriangleUp |
23 | full triangle down | kFullTriangleDown |
24 | open circle | kOpenCircle |
25 | open square | kOpenSquare |
26 | open triangle up | kOpenTriangleUp |
27 | open diamond | kOpenDiamond |
28 | open cross | kOpenCross |
29 | full star | kFullStar |
30 | open star | kOpenStar |
31 | * | |
32 | open triangle down | kOpenTriangleDown |
33 | full diamond | kFullDiamond |
34 | full cross | kFullCross |
35 | open diamond cross | kOpenDiamondCross |
36 | open square diagonal | kOpenSquareDiagonal |
37 | open three triangle | kOpenThreeTriangles |
38 | octagon with cross | kOctagonCross |
39 | full three triangles | kFullThreeTriangles |
40 | open four triangleX | kOpenFourTrianglesX |
41 | full four triangleX | kFullFourTrianglesX |
42 | open double diamond | kOpenDoubleDiamond |
43 | full double diamond | kFullDoubleDiamond |
44 | open four triangle+ | kOpenFourTrianglesPlus |
45 | full four triangle+ | kFullFourTrianglesPlus |
46 | open cross X | kOpenCrossX |
47 | full cross X | kFullCrossX |
48 | four squares X | kFourSquaresX |
49 | four squares+ | kFourSquaresPlus |
样式
颜色
注意空心边线的粗细似乎仅能在TAttMarker::SetMarkerStyle()
中设置
示意图如下