Changeset 3008
- Timestamp:
- Aug 15, 2017 3:48:15 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r3000 r3008 4037 4037 sub = GetGPXtreeItemId(self,self.root,'Phases') 4038 4038 else: 4039 print 'no phases found in GetPhaseData'4039 # print 'no phases found in GetPhaseData' 4040 4040 sub = None 4041 4041 if sub: … … 4084 4084 sub = GetGPXtreeItemId(self,self.root,'Phases') 4085 4085 else: 4086 print 'no phases found in GetPhaseNames'4086 # print 'no phases found in GetPhaseNames' 4087 4087 sub = None 4088 4088 if sub: -
trunk/GSASIIplot.py
r3003 r3008 1990 1990 SampleList.append(G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame, 1991 1991 id, 'Sample Parameters'))) 1992 mcolors = mpl.cm.ScalarMappable(mpl.cm.get_cmap(G2frame.ContourColor)) 1992 1993 lenX = 0 1993 1994 Ymax = None … … 2245 2246 Plot.semilogy(X,Y,colors[N%6],picker=False,nonposy='mask') 2246 2247 else: 2248 color = 256*N/len(PlotList) 2247 2249 if 'PWDR' in plottype: 2248 Plot.plot(X,Y,color s[N%6],picker=False)2250 Plot.plot(X,Y,color=mcolors.cmap(color),picker=False) #colors[N%6] 2249 2251 elif plottype in ['SASD','REFD']: 2250 Plot.loglog(X,Y, colors[N%6],picker=False,nonposy='mask')2252 Plot.loglog(X,Y,mcolors.cmap(color),picker=False,nonposy='mask') 2251 2253 Plot.set_ylim(bottom=np.min(np.trim_zeros(Y))/2.,top=np.max(Y)*2.) 2252 2254 2253 2255 if G2frame.logPlot and 'PWDR' in plottype: 2254 2256 Plot.set_ylim(bottom=np.min(np.trim_zeros(Y))/2.,top=np.max(Y)*2.) 2257 # if not G2frame.SinglePlot and not G2frame.Contour: 2258 # axcb = mpl.colorbar.ColorbarBase(N) 2259 # axcb.set_label('PDF number') 2260 2255 2261 if PickId and not G2frame.Contour: 2256 2262 Parms,Parms2 = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Instrument Parameters')) … … 2649 2655 return 2650 2656 PlotList = [data[plotType],] 2651 name = PlotList[0][2] 2657 try: 2658 name = PlotList[0][2] 2659 except: 2660 name = '' 2652 2661 else: 2653 2662 PlotList = []
Note: See TracChangeset
for help on using the changeset viewer.