Changeset 3008


Ignore:
Timestamp:
Aug 15, 2017 3:48:15 PM (6 years ago)
Author:
vondreele
Message:

remove print "no phases found..."
use contour colors for powder waterfall plot colors

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3000 r3008  
    40374037            sub = GetGPXtreeItemId(self,self.root,'Phases')
    40384038        else:
    4039             print 'no phases found in GetPhaseData'
     4039#            print 'no phases found in GetPhaseData'
    40404040            sub = None
    40414041        if sub:
     
    40844084            sub = GetGPXtreeItemId(self,self.root,'Phases')
    40854085        else:
    4086             print 'no phases found in GetPhaseNames'
     4086#            print 'no phases found in GetPhaseNames'
    40874087            sub = None
    40884088        if sub:
  • trunk/GSASIIplot.py

    r3003 r3008  
    19901990            SampleList.append(G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,
    19911991                id, 'Sample Parameters')))
     1992        mcolors = mpl.cm.ScalarMappable(mpl.cm.get_cmap(G2frame.ContourColor))
    19921993    lenX = 0
    19931994    Ymax = None
     
    22452246                        Plot.semilogy(X,Y,colors[N%6],picker=False,nonposy='mask')
    22462247                else:
     2248                    color = 256*N/len(PlotList)
    22472249                    if 'PWDR' in plottype:
    2248                         Plot.plot(X,Y,colors[N%6],picker=False)
     2250                        Plot.plot(X,Y,color=mcolors.cmap(color),picker=False)         #colors[N%6]
    22492251                    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')
    22512253                        Plot.set_ylim(bottom=np.min(np.trim_zeros(Y))/2.,top=np.max(Y)*2.)
    22522254                           
    22532255                if G2frame.logPlot and 'PWDR' in plottype:
    22542256                    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
    22552261    if PickId and not G2frame.Contour:
    22562262        Parms,Parms2 = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Instrument Parameters'))
     
    26492655            return
    26502656        PlotList = [data[plotType],]
    2651         name = PlotList[0][2]
     2657        try:
     2658            name = PlotList[0][2]
     2659        except:
     2660            name = ''
    26522661    else:
    26532662        PlotList = []
Note: See TracChangeset for help on using the changeset viewer.