Skip to content

Fixed width proposal #23

@raffaeler

Description

@raffaeler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions