Fixed width proposal
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
Very useful! Thanks @raffaeler
@raffaeler sorry to bother you. I have some problems using the library and I was wondering if you have faced the same issues.
Could you take a look at #15? As I can see, you have proposed some improvements and I feel like you know well how this library works, so any help is appreciated.
Thanks in advance.