Skip to content

Commit 1d8781d

Browse files
authored
Merge pull request #1830 from HEXRD/xrs-powder-azimuthal-means
Only draw lineout powder lines if XRS matches
2 parents 2092bec + 8dd44b0 commit 1d8781d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hexrdgui/image_canvas.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,15 @@ def plot(data, key, kwargs):
517517
plot(h_ranges, 'h_ranges', highlight_style['ranges'])
518518

519519
def draw_azimuthal_powder_lines(self, overlay):
520+
if (
521+
HexrdConfig().has_multi_xrs and
522+
overlay.xray_source is not None and
523+
HexrdConfig().active_beam_name != overlay.xray_source
524+
):
525+
# This overlay's x-ray source does not match the active one.
526+
# Skip it.
527+
return
528+
520529
az_axis = self.azimuthal_integral_axis
521530
if az_axis is None or not overlay.hkl_means:
522531
# Can't draw

0 commit comments

Comments
 (0)