Skip to content

Commit 4f95c38

Browse files
committed
Fix bug in multipattern legend display for old files
1 parent f87b550 commit 4f95c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GSASII/GSASIIpwdplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ def onPartialConfig(event):
25462546
if 'PWDR' in plottype:
25472547
# waterfall mode=3: name in legend?
25482548
name = Pattern[2]
2549-
if Pattern[0]['histTitle']: name = Pattern[0]['histTitle']
2549+
if 'histTitle' in Pattern[0] and Pattern[0]['histTitle']: name = Pattern[0]['histTitle']
25502550
Plot.plot(X,Y/ymax,color=mcolors.cmap(icolor),picker=False,label=incCptn(name))
25512551
elif plottype in ['SASD','REFD']:
25522552
try:

0 commit comments

Comments
 (0)