Changeset 4528 for trunk/GSASIIplot.py
- Timestamp:
- Jul 20, 2020 9:35:19 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4519 r4528 3404 3404 for i,l in enumerate(Plot.lines): 3405 3405 lbl = l.get_label() 3406 if 'mag ' in lbl:3406 if 'magline' in lbl: 3407 3407 pass 3408 3408 elif lbl[1:] in plotOpt['lineList']: # item not in legend … … 3534 3534 for i,l in enumerate(Plot.lines): 3535 3535 lbl = l.get_label() 3536 if 'mag ' not in lbl: continue3536 if 'magline' not in lbl: continue 3537 3537 #ax0.axvline(l.get_data()[0][0],color='0.5',dashes=(1,1)) 3538 3538 # vertical line … … 3545 3545 fp.write(s) 3546 3546 for l in Plot.texts: 3547 if 'mag ' not in l.get_label(): continue3547 if 'magline' not in l.get_label(): continue 3548 3548 if l.xycoords[0] == 'data': 3549 3549 xpos = l.get_position()[0] … … 3879 3879 for i,l in enumerate(Plot.lines): 3880 3880 lbl = l.get_label() 3881 if 'mag ' not in lbl: continue3881 if 'magline' not in lbl: continue 3882 3882 j += 1 3883 3883 fp.write('WAVES /D/O mag{0}X, mag{0}\nBEGIN\n'.format(j)) … … 3887 3887 fp.write('X ModifyGraph lstyle(mag{0})=3,rgb(mag{0})=(0,0,0)\n'.format(j)) 3888 3888 for l in Plot.texts: 3889 if 'mag ' not in l.get_label(): continue3889 if 'magline' not in l.get_label(): continue 3890 3890 if l.xycoords[0] == 'data': 3891 3891 xpos = l.get_position()[0] … … 3925 3925 else: 3926 3926 lbl = l.get_label() 3927 if 'mag ' in lbl:3927 if 'magline' in lbl: 3928 3928 pass 3929 3929 elif lbl in ('obs','calc','bkg','zero','diff'): … … 3956 3956 for l in Plot.texts: 3957 3957 lbl = l.get_label() 3958 if 'mag ' not in lbl: continue3958 if 'magline' not in lbl: continue 3959 3959 if l.xycoords == 'axes fraction': 3960 3960 lbl = 'initial-mag' … … 4198 4198 else: 4199 4199 lbl = l.get_label() 4200 if 'mag ' in lbl:4200 if 'magline' in lbl: 4201 4201 ax0.axvline(l.get_data()[0][0],color='0.5',dashes=(1,1)) 4202 4202 elif lbl in ('obs','calc','bkg','zero','diff'): … … 4249 4249 legLine.append(art[0]) 4250 4250 for l in Plot.texts: 4251 if 'mag ' not in l.get_label(): continue4251 if 'magline' not in l.get_label(): continue 4252 4252 ax0.annotate(l.get_text(), 4253 4253 xy=(l.get_position()), xycoords=l.xycoords,
Note: See TracChangeset
for help on using the changeset viewer.