@@ -7172,6 +7172,8 @@ def _makemenu(): # routine to create menu when first used
71727172 self .GeneralCalc .Append (G2G .wxID_COMPARECELLS ,'Compare Cells' ,'Compare Unit Cells using NIST*LATTICE' )
71737173 self .GeneralCalc .Append (G2G .wxID_COMPARESTRUCTURE ,'Compare polyhedra' ,'Compare polyhedra to ideal octahedra/tetrahedra' )
71747174 self .GeneralCalc .Enable (G2G .wxID_COMPARESTRUCTURE ,False )
7175+ G2G .Define_wxId ('wxID_SUBSRCH' )
7176+ self .GeneralCalc .Append (G2G .wxID_SUBSRCH ,'SUBGROUPS search' ,'Search for settings of this phase in higher symmetry' )
71757177 self .GeneralCalc .Append (G2G .wxID_USEBILBAOMAG ,'Select magnetic/subgroup phase' ,'If disabled, make in PWDR/Unit Cells' )
71767178 self .GeneralCalc .Append (G2G .wxID_USEBILBAOSUB ,'Make subgroup project file(s)' ,'Requires subcell search in PWDR/Unit Cells' )
71777179 G2G .Define_wxId ('wxID_SUPERSRCH' )
@@ -8487,7 +8489,7 @@ def OnEditMag(**args):
84878489 # for lbl in G2frame.G2plotNB.plotList:
84888490 # G2frame.G2plotNB.Delete(lbl)
84898491 # G2frame.lastPlotType = None
8490- G2pwpl .PlotPatterns (G2frame ,plotType = kind ,newPlot = NewPlot )
8492+ G2pwpl .PlotPatterns (G2frame ,plotType = kind ,newPlot = NewPlot , fromTree = True )
84918493 elif kind == 'HKLF' :
84928494 Name = G2frame .GPXtree .GetItemText (item )
84938495 phaseName = G2pdG .IsHistogramInAnyPhase (G2frame ,Name )
@@ -8929,18 +8931,18 @@ def OnShowShift(event):
89298931 if G2frame .Contour :
89308932 G2frame .Contour = False
89318933 newPlot = True
8932- G2pwpl .PlotPatterns (G2frame ,newPlot )
8934+ G2pwpl .PlotPatterns (G2frame ,newPlot , fromTree = True )
89338935 elif G2frame .GPXtree .GetItemText (item ) == 'Background' :
89348936 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89358937 data = G2frame .GPXtree .GetItemPyData (item )
89368938 G2pdG .UpdateBackground (G2frame ,data )
8937- G2pwpl .PlotPatterns (G2frame ,True )
8939+ G2pwpl .PlotPatterns (G2frame ,True , fromTree = True )
89388940 elif G2frame .GPXtree .GetItemText (item ) == 'Limits' :
89398941 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89408942 datatype = G2frame .GPXtree .GetItemText (G2frame .PatternId )[:4 ]
89418943 data = G2frame .GPXtree .GetItemPyData (item )
89428944 G2pdG .UpdateLimitsGrid (G2frame ,data ,datatype )
8943- G2pwpl .PlotPatterns (G2frame ,plotType = datatype ,newPlot = True )
8945+ G2pwpl .PlotPatterns (G2frame ,plotType = datatype ,newPlot = True , fromTree = True )
89448946 elif G2frame .GPXtree .GetItemText (item ) == 'Instrument Parameters' :
89458947 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89468948 data = G2frame .GPXtree .GetItemPyData (item )[0 ]
@@ -8954,7 +8956,7 @@ def OnShowShift(event):
89548956 G2pdG .UpdateModelsGrid (G2frame ,data )
89558957 elif prfx1 == 'REFD' :
89568958 G2pdG .UpdateREFDModelsGrid (G2frame ,data )
8957- G2pwpl .PlotPatterns (G2frame ,plotType = prfx1 )
8959+ G2pwpl .PlotPatterns (G2frame ,plotType = prfx1 , fromTree = True )
89588960 if prfx1 == 'SASD' :
89598961 if len (data ['Size' ]['Distribution' ]):
89608962 G2plt .PlotSASDSizeDist (G2frame )
@@ -8977,7 +8979,7 @@ def OnShowShift(event):
89778979 G2frame .GPXtree .SetItemPyData (item ,data )
89788980
89798981 G2pdG .UpdateSampleGrid (G2frame ,data )
8980- G2pwpl .PlotPatterns (G2frame ,True ,plotType = datatype )
8982+ G2pwpl .PlotPatterns (G2frame ,True ,plotType = datatype , fromTree = True )
89818983 elif G2frame .GPXtree .GetItemText (item ) == 'Index Peak List' :
89828984 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89838985 data = G2frame .GPXtree .GetItemPyData (item )
@@ -8996,7 +8998,7 @@ def OnShowShift(event):
89968998 if G2frame .Contour :
89978999 G2frame .Contour = False
89989000 newPlot = True
8999- G2pwpl .PlotPatterns (G2frame ,newPlot )
9001+ G2pwpl .PlotPatterns (G2frame ,newPlot , fromTree = True )
90009002 elif G2frame .GPXtree .GetItemText (item ) == 'Unit Cells List' :
90019003 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
90029004 data = G2frame .GPXtree .GetItemPyData (item )
@@ -9027,7 +9029,7 @@ def OnShowShift(event):
90279029 if G2frame .Contour :
90289030 G2frame .Contour = False
90299031 newPlot = True
9030- G2pwpl .PlotPatterns (G2frame ,newPlot )
9032+ G2pwpl .PlotPatterns (G2frame ,newPlot , fromTree = True )
90319033 elif G2frame .GPXtree .GetItemText (item ) == 'Reflection List' : #HKLF reflections
90329034 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
90339035 name = G2frame .GPXtree .GetItemText (G2frame .PatternId )
0 commit comments