Skip to content

Plot upgrades#15

Merged
utkuvibing merged 6 commits into
mainfrom
plot-upgrades
Apr 26, 2026
Merged

Plot upgrades#15
utkuvibing merged 6 commits into
mainfrom
plot-upgrades

Conversation

@utkuvibing
Copy link
Copy Markdown
Owner

Summary

  • What changed?
  • Why did it change?

Testing

  • List the exact commands you ran.
  • Mention any manual smoke checks.

Review & merge gates

  • Codex review completed
  • Enable auto-merge after checks pass

Risk / rollback

  • Main risk area:
  • Rollback plan:

@utkuvibing utkuvibing merged commit f8f9160 into main Apr 26, 2026
2 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8422dcbb0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +575 to +578
elif has_corrected:
corrected_range = _corrected_view_y_range(corrected, peak_y)
if corrected_range is not None:
fig.update_yaxes(range=corrected_range)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve autorange when intermediate XRD traces are shown

This branch forces the y-axis range to corrected-only values whenever corrected data exists, even when show_intermediate_traces is enabled and raw/smoothed/baseline traces are intentionally visible. In runs where raw intensities are much larger than corrected values, toggling intermediate traces on will still clip those visible traces out of view, so the comparison mode does not actually display the data it enables. The corrected-only range override should be skipped when intermediate traces are being shown (or computed from all visible traces).

Useful? React with 👍 / 👎.

Comment thread dash_app/pages/xrd.py
Comment on lines +2202 to +2205
shapes = relayout_data.get("shapes")
if isinstance(shapes, list):
return [dict(shape) for shape in shapes if isinstance(shape, dict)]
return None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Retain drawn shapes across non-shape relayout payloads

The relayout parser only returns shapes when relayoutData contains a top-level shapes list; for other valid relayout payloads (for example zoom/pan keys like xaxis.range[0]), it returns None. Since this value is consumed as State during figure rebuilds, any rerender after a non-shape relayout event drops previously drawn annotations, which defeats shape persistence after normal interactions. The parser should preserve the last known shapes instead of treating non-shape relayout payloads as “no shapes.”

Useful? React with 👍 / 👎.

@utkuvibing utkuvibing deleted the plot-upgrades branch April 27, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant