Changeset 2796


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

adjustments for tickmarks

Location:
trunk
Files:
2 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
  • trunk/config_example.py

    r2782 r2796  
    132132Used in AutoIntegration
    133133'''
     134
     135Tick_length = 8.0
     136'''Specifies the length of phase tick marks in pixels. Default is 8.'''
     137
     138Tick_width = 1.0
     139'''Specifies the width of phase tick marks in pixels.
     140Fractional values do seem to produce an effect. Default is 1.'''
Note: See TracChangeset for help on using the changeset viewer.