图标颜色、大小、粗细

绘图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 numberMarker shapeMarker name
1dotkDot
2+kPlus
3*kStar
4okCircle
5xkMultiply
6small dotkFullDotSmall
7medium dotkFullDotMedium
8large scalable dotkFullDotLarge
9 -->19large scalable dot
20full circlekFullCircle
21full squarekFullSquare
22full triangle upkFullTriangleUp
23full triangle downkFullTriangleDown
24open circlekOpenCircle
25open squarekOpenSquare
26open triangle upkOpenTriangleUp
27open diamondkOpenDiamond
28open crosskOpenCross
29full starkFullStar
30open starkOpenStar
31*
32open triangle downkOpenTriangleDown
33full diamondkFullDiamond
34full crosskFullCross
35open diamond crosskOpenDiamondCross
36open square diagonalkOpenSquareDiagonal
37open three trianglekOpenThreeTriangles
38octagon with crosskOctagonCross
39full three triangleskFullThreeTriangles
40open four triangleXkOpenFourTrianglesX
41full four triangleXkFullFourTrianglesX
42open double diamondkOpenDoubleDiamond
43full double diamondkFullDoubleDiamond
44open four triangle+kOpenFourTrianglesPlus
45full four triangle+kFullFourTrianglesPlus
46open cross XkOpenCrossX
47full cross XkFullCrossX
48four squares XkFourSquaresX
49four squares+kFourSquaresPlus

样式

在这里插入图片描述

颜色

在这里插入图片描述

注意空心边线的粗细似乎仅能在TAttMarker::SetMarkerStyle()中设置

示意图如下在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值