Changeset 4529 for trunk/GSASIIplot.py
- Timestamp:
- Jul 20, 2020 5:53:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4528 r4529 268 268 plotOpt['width'] = 8. 269 269 plotOpt['height'] = 6. 270 plotOpt['Show'] = {} 270 271 plotOpt['legend'] = {} 271 272 plotOpt['colors'] = {} … … 3591 3592 gmw = 0 3592 3593 lineWid = float(plotOpt['lineWid']) 3594 if not plotOpt['Show'].get(lbl,True): continue 3593 3595 if plotOpt['legend'].get(lbl): 3594 3596 glbl = lbl … … 3619 3621 mkwid = float(plotOpt['tickWid']) 3620 3622 if sum(c) == 4.0: continue # white: ignore 3623 if not plotOpt['Show'].get(lbl,True): continue 3621 3624 if plotOpt['legend'].get(lbl): 3622 3625 # invisible data point for … … 3732 3735 for i,l in enumerate(Plot.lines): 3733 3736 lbl = l.get_label() 3737 if not plotOpt['Show'].get(lbl[1:],True): continue 3734 3738 if plotOpt['legend'].get(lbl[1:]): 3735 3739 legends.append((InameDict[lbl[1:]],lbl[1:])) … … 3853 3857 for i,l in enumerate(Plot.lines): 3854 3858 lbl = l.get_label() 3859 if not plotOpt['Show'].get(lbl,True): continue 3855 3860 if l in Page.tickDict.values(): 3856 3861 c = plotOpt['colors'].get(lbl,l.get_color()) … … 4014 4019 if plotOpt['initNeeded']: Initialize() 4015 4020 GetColors() 4016 dlg = wx.Dialog(G2frame.plotFrame, 4021 dlg = wx.Dialog(G2frame.plotFrame,title="Publication plot creation", 4017 4022 style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) 4018 4023 vbox = wx.BoxSizer(wx.VERTICAL) … … 4086 4091 style=wx.ALIGN_CENTER,OnLeave=RefreshPlot) 4087 4092 gsizer.Add(val,0,wx.ALL) 4093 gsizer.Add(wx.StaticText(dlg,wx.ID_ANY,'Show'),0,wx.ALL) 4094 for lbl in list(plotOpt['lineList']) + list(plotOpt['phaseList'] ): 4095 if lbl not in plotOpt['Show']: 4096 plotOpt['Show'][lbl] = True 4097 ch = G2G.G2CheckBox(dlg,'',plotOpt['Show'],lbl,RefreshPlot) 4098 gsizer.Add(ch,0,wx.ALL|wx.ALIGN_CENTER) 4088 4099 gsizer.Add(wx.StaticText(dlg,wx.ID_ANY,'Include in legend'),0,wx.ALL) 4089 4100 for lbl in list(plotOpt['lineList']) + list(plotOpt['phaseList'] ): … … 4201 4212 ax0.axvline(l.get_data()[0][0],color='0.5',dashes=(1,1)) 4202 4213 elif lbl in ('obs','calc','bkg','zero','diff'): 4214 if not plotOpt['Show'].get(lbl,True): continue 4203 4215 marker = l.get_marker() 4204 4216 lineWid = l.get_lw() … … 4231 4243 legLine.append(art[0]) 4232 4244 elif l in Page.tickDict.values(): 4245 if not plotOpt['Show'].get(lbl,True): continue 4233 4246 c = plotOpt['colors'].get(lbl,l.get_color()) 4234 4247 #siz = l.get_markersize()
Note: See TracChangeset
for help on using the changeset viewer.