Skip to content

Commit a86b030

Browse files
committed
XRD block: plot staggered intensity by default if multiple patterns
1 parent 1ba1b03 commit a86b030

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pydatalab/src/pydatalab/apps/xrd/blocks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ def _make_plots(self, pattern_dfs: list[pd.DataFrame], y_options: list[str]):
322322
return selectable_axes_plot(
323323
pattern_dfs,
324324
x_options=["2θ (°)", "Q (Å⁻¹)", "d (Å)"],
325-
y_default="normalized intensity",
325+
y_default="normalized intensity (staggered)"
326+
if len(pattern_dfs) > 1
327+
else "normalized intensity",
326328
y_options=y_options,
327329
plot_line=True,
328330
plot_points=True,

0 commit comments

Comments
 (0)