Skip to content

Experiment plot loses the data after toggling R(q)q⁴ or log q-axis; Reset view does not bring it back #393

Open

Description

@rozyczko

Reported in user testing of v1.6.1 (multiple-contrasts session, 23/11/2026).

The reflectivity plot on the Experiment page (Advanced controls → Plot control) loses the data when the plot transforms are toggled. Two reproductions:

1. R(q)·q⁴

  1. Load Film in three water contrasts and go to Experiment → Advanced controls.
  2. Tick Plot R(q)×q⁴. The axes change (y ≈ −11.6 … −7.3) but no data is drawn.
  3. Also tick Logarithmic q-axis. The data appears.
  4. Untick Logarithmic q-axis. Now R(q)·q⁴ on a linear q-axis draws correctly.

2. Log q-axis

  1. With R(q)·q⁴ off, tick Logarithmic q-axis. The data disappears (y-axis −6.8 … 0.1, x-axis 0.01 … 0.1, empty plot).
  2. The Reset view (home) button does not bring the data back into view.

Expected
Every combination of R(q)·q⁴, linear R axis and log q-axis shows the data right after the checkbox is toggled, and Reset view always fits the axes to the data.

Notes
Looks like the series or axis ranges aren't recomputed (or redrawn) on the first transform change. They only come right after a second change. See the earlier fixes in #376 (x-axis auto-rescale for log-q) and #273 (log q scaling), which this may have regressed. Check whether the Sample and Analysis plots behave the same way, since they share PlotControlCommon.qml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] high[scope] bug

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions