-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
BUGunexpected behaviorunexpected behavior
Description
Bug Report
Issue: When using background frame for text plots, the alignment rule is not respected for the background frame
Reproducing: Plotting a text with background enabled and alignment is set anything other than Alignment.UpperLeft will reproduce the problem. If I recall correctly this issue was not present in 4.0.*
WpfPlot Root; /*XAML element*/
Text MouseLocationText;
VLine MouseTrackerVertLine;
HLine MouseTrackerHorzLine;
...
...
MouseTrackerVertLine = Root.Plot.AddVerticalLine(DateTime.Now.ToOADate(), color: Color.Red, style: LineStyle.Dash);
MouseTrackerHorzLine = Root.Plot.AddHorizontalLine(4, color: Color.Red, style: LineStyle.Dash);
MouseLocationText = Root.Plot.AddText("", 50, 150, color: Color.Red, size: 18);
MouseLocationText.Alignment = Alignment.UpperRight;
MouseLocationText.BackgroundFill = true;
MouseLocationText.BackgroundColor = Color.Black;System Details
- ScottPlot Version: 4.1.27
- Operating System: Windows 10
- Application Type: WPF
- .NET Version: .Net core 3.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior