-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
When resizing a ScottPlot 4 control, axis dimensions like Plot.XAxis.Dims reflect old data. This can be observed by quickly resizing a control and noting that the reported dimensions are always one render out of date.
This issue was originally noted by @dhgigisoave in #3000
Here's the code I'm using to test this
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
WpfPlot1.Plot.AddSignal(ScottPlot.DataGen.Sin(51));
WpfPlot1.Plot.AddSignal(ScottPlot.DataGen.Cos(51));
WpfPlot1.Refresh();
WpfPlot1.Refresh();
WpfPlot1.SizeChanged += (s, e) =>
{
Title = $"Actual={WpfPlot1.ActualWidth}, Reported={WpfPlot1.Plot.XAxis.Dims.FigureSizePx}";
};
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels