Skip to content

Bracket: new plot type#4559

Merged
swharden merged 2 commits intomainfrom
4547
Nov 24, 2024
Merged

Bracket: new plot type#4559
swharden merged 2 commits intomainfrom
4547

Conversation

@swharden
Copy link
Member

This PR brins the Bracket plot type from ScottPlot 4 into ScottPlot 5. Thanks @bclehmann for your previous work on this (#1863) this was very easy to bring over and it looks great! 🚀

resolves #4547

myPlot.Add.Signal(Generate.Sin());
myPlot.Add.Signal(Generate.Cos());

myPlot.Add.Bracket(0, 1, 0, 0, "Bracket A");
myPlot.Add.Bracket(25, -1, 38, -1, "Bracket B");
myPlot.Add.Bracket(20, .55, 27, -.3, "Bracket C");

image

@swharden swharden enabled auto-merge (squash) November 24, 2024 16:50
@swharden swharden merged commit d306f9f into main Nov 24, 2024
@swharden swharden deleted the 4547 branch November 24, 2024 16:55
@ZhuYajunFly
Copy link

I would like to add more settings options,such as Bracket's text fontsize, text clolor,line color.

@bclehmann
Copy link
Member

I would like to add more settings options,such as Bracket's text fontsize, text clolor,line color.

I believe you can do all of that by mutating yourBracket.LabelStyle and yourBracket.LineStyle

@ZhuYajunFly
Copy link

I would like to add more settings options,such as Bracket's text fontsize, text clolor,line color.我想添加更多的设置选项,如字体大小,文本颜色,线条颜色。

I believe you can do all of that by mutating yourBracket.LabelStyle and yourBracket.LineStyle我相信你可以通过改变你的标签样式线条样式来做到这一切

Yes,wonderful,thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New plot type: Bracket

3 participants