-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
In wanted to preserve the width of the X scale at the beginning of an acquisition.
In fact, I find confusing seeing the data being compressed until the X size reaches the Range.MaximumX value.
I successfully made a change in the code with the following goals:
- Start plotting at the left of the control
- As soon as the data reaches the right side of the control, the default scrolling behavior take place
The change was straightforward in the GraphController.cs file (line 313):
if (_to_render.Count > 0 && _to_render.First().Value.XX.Count > 0)
{
min_x = _to_render.First().Value.XX.First();
var runtimeMax = _to_render.First().Value.XX.Last();
if (runtimeMax > max_x)
max_x = runtimeMax;
}
This could be a small change to control with a (dependency) property.
HTH
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels