Changeset 2796 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 19, 2017 1:03:32 PM (5 years ago)
Author:
toby
Message:

adjustments for tickmarks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2784 r2796  
    18061806                        data[0]['refOffset'] = event.ydata
    18071807        PlotPatterns(G2frame,plotType=plottype)
    1808         G2frame.itemPicked = None   
    1809 
     1808        G2frame.itemPicked = None
     1809
     1810    #=====================================================================================
    18101811    # beginning PlotPatterns execution
    18111812    new,plotNum,Page,Plot,limits = G2frame.G2plotNB.FindPlotTab('Powder Patterns','mpl')
     
    22172218            refColors=['b','r','c','g','m','k']
    22182219            Phases = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,PatternId,'Reflection Lists'))
     2220            l = GSASIIpath.GetConfigValue('Tick_length',8.0)
     2221            w = GSASIIpath.GetConfigValue('Tick_width',1.)
    22192222            for pId,phase in enumerate(Page.phaseList):
    22202223                if 'list' in str(type(Phases[phase])):
     
    22292232                pos = Pattern[0]['refOffset']-pId*Pattern[0]['refDelt']*np.ones_like(peak)
    22302233                if G2frame.plotStyle['qPlot']:
    2231                     Page.tickDict[phase],j = Plot.plot(2*np.pi/peak.T[0],pos,refColors[pId%6]+'|',mew=1,ms=8,picker=3.,label=phase)
     2234                    Page.tickDict[phase],j = Plot.plot(2*np.pi/peak.T[0],pos,refColors[pId%6]+'|',mew=w,ms=l,picker=3.,label=phase)
    22322235                elif G2frame.plotStyle['dPlot']:
    2233                     Page.tickDict[phase],j = Plot.plot(peak.T[0],pos,refColors[pId%6]+'|',mew=1,ms=8,picker=3.,label=phase)
     2236                    Page.tickDict[phase],j = Plot.plot(peak.T[0],pos,refColors[pId%6]+'|',mew=w,ms=l,picker=3.,label=phase)
    22342237                else:
    2235                     Page.tickDict[phase],j = Plot.plot(peak.T[1],pos,refColors[pId%6]+'|',mew=1,ms=8,picker=3.,label=phase)
     2238                    Page.tickDict[phase],j = Plot.plot(peak.T[1],pos,refColors[pId%6]+'|',mew=w,ms=l,picker=3.,label=phase)
    22362239            if len(Phases):
    22372240                handles,legends = Plot.get_legend_handles_labels()  #got double entries in the legends for some reason
Note: See TracChangeset for help on using the changeset viewer.