Changeset 2796
- Timestamp:
- Apr 19, 2017 1:03:32 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2784 r2796 1806 1806 data[0]['refOffset'] = event.ydata 1807 1807 PlotPatterns(G2frame,plotType=plottype) 1808 G2frame.itemPicked = None 1809 1808 G2frame.itemPicked = None 1809 1810 #===================================================================================== 1810 1811 # beginning PlotPatterns execution 1811 1812 new,plotNum,Page,Plot,limits = G2frame.G2plotNB.FindPlotTab('Powder Patterns','mpl') … … 2217 2218 refColors=['b','r','c','g','m','k'] 2218 2219 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.) 2219 2222 for pId,phase in enumerate(Page.phaseList): 2220 2223 if 'list' in str(type(Phases[phase])): … … 2229 2232 pos = Pattern[0]['refOffset']-pId*Pattern[0]['refDelt']*np.ones_like(peak) 2230 2233 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) 2232 2235 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) 2234 2237 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) 2236 2239 if len(Phases): 2237 2240 handles,legends = Plot.get_legend_handles_labels() #got double entries in the legends for some reason -
trunk/config_example.py
r2782 r2796 132 132 Used in AutoIntegration 133 133 ''' 134 135 Tick_length = 8.0 136 '''Specifies the length of phase tick marks in pixels. Default is 8.''' 137 138 Tick_width = 1.0 139 '''Specifies the width of phase tick marks in pixels. 140 Fractional values do seem to produce an effect. Default is 1.'''
Note: See TracChangeset
for help on using the changeset viewer.