@@ -7166,6 +7166,8 @@ def _makemenu(): # routine to create menu when first used
71667166 self .GeneralCalc .Append (G2G .wxID_COMPARECELLS ,'Compare Cells' ,'Compare Unit Cells using NIST*LATTICE' )
71677167 self .GeneralCalc .Append (G2G .wxID_COMPARESTRUCTURE ,'Compare polyhedra' ,'Compare polyhedra to ideal octahedra/tetrahedra' )
71687168 self .GeneralCalc .Enable (G2G .wxID_COMPARESTRUCTURE ,False )
7169+ G2G .Define_wxId ('wxID_SUBSRCH' )
7170+ self .GeneralCalc .Append (G2G .wxID_SUBSRCH ,'SUBGROUPS search' ,'Search for settings of this phase in higher symmetry' )
71697171 self .GeneralCalc .Append (G2G .wxID_USEBILBAOMAG ,'Select magnetic/subgroup phase' ,'If disabled, make in PWDR/Unit Cells' )
71707172 self .GeneralCalc .Append (G2G .wxID_USEBILBAOSUB ,'Make subgroup project file(s)' ,'Requires subcell search in PWDR/Unit Cells' )
71717173 G2G .Define_wxId ('wxID_SUPERSRCH' )
@@ -8481,7 +8483,7 @@ def OnEditMag(**args):
84818483 # for lbl in G2frame.G2plotNB.plotList:
84828484 # G2frame.G2plotNB.Delete(lbl)
84838485 # G2frame.lastPlotType = None
8484- G2pwpl .PlotPatterns (G2frame ,plotType = kind ,newPlot = NewPlot )
8486+ G2pwpl .PlotPatterns (G2frame ,plotType = kind ,newPlot = NewPlot , fromTree = True )
84858487 elif kind == 'HKLF' :
84868488 Name = G2frame .GPXtree .GetItemText (item )
84878489 phaseName = G2pdG .IsHistogramInAnyPhase (G2frame ,Name )
@@ -8923,18 +8925,18 @@ def OnShowShift(event):
89238925 if G2frame .Contour :
89248926 G2frame .Contour = False
89258927 newPlot = True
8926- G2pwpl .PlotPatterns (G2frame ,newPlot )
8928+ G2pwpl .PlotPatterns (G2frame ,newPlot , fromTree = True )
89278929 elif G2frame .GPXtree .GetItemText (item ) == 'Background' :
89288930 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89298931 data = G2frame .GPXtree .GetItemPyData (item )
89308932 G2pdG .UpdateBackground (G2frame ,data )
8931- G2pwpl .PlotPatterns (G2frame ,True )
8933+ G2pwpl .PlotPatterns (G2frame ,True , fromTree = True )
89328934 elif G2frame .GPXtree .GetItemText (item ) == 'Limits' :
89338935 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89348936 datatype = G2frame .GPXtree .GetItemText (G2frame .PatternId )[:4 ]
89358937 data = G2frame .GPXtree .GetItemPyData (item )
89368938 G2pdG .UpdateLimitsGrid (G2frame ,data ,datatype )
8937- G2pwpl .PlotPatterns (G2frame ,plotType = datatype ,newPlot = True )
8939+ G2pwpl .PlotPatterns (G2frame ,plotType = datatype ,newPlot = True , fromTree = True )
89388940 elif G2frame .GPXtree .GetItemText (item ) == 'Instrument Parameters' :
89398941 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89408942 data = G2frame .GPXtree .GetItemPyData (item )[0 ]
@@ -8948,7 +8950,7 @@ def OnShowShift(event):
89488950 G2pdG .UpdateModelsGrid (G2frame ,data )
89498951 elif prfx1 == 'REFD' :
89508952 G2pdG .UpdateREFDModelsGrid (G2frame ,data )
8951- G2pwpl .PlotPatterns (G2frame ,plotType = prfx1 )
8953+ G2pwpl .PlotPatterns (G2frame ,plotType = prfx1 , fromTree = True )
89528954 if prfx1 == 'SASD' :
89538955 if len (data ['Size' ]['Distribution' ]):
89548956 G2plt .PlotSASDSizeDist (G2frame )
@@ -8971,7 +8973,7 @@ def OnShowShift(event):
89718973 G2frame .GPXtree .SetItemPyData (item ,data )
89728974
89738975 G2pdG .UpdateSampleGrid (G2frame ,data )
8974- G2pwpl .PlotPatterns (G2frame ,True ,plotType = datatype )
8976+ G2pwpl .PlotPatterns (G2frame ,True ,plotType = datatype , fromTree = True )
89758977 elif G2frame .GPXtree .GetItemText (item ) == 'Index Peak List' :
89768978 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89778979 data = G2frame .GPXtree .GetItemPyData (item )
@@ -8990,7 +8992,7 @@ def OnShowShift(event):
89908992 if G2frame .Contour :
89918993 G2frame .Contour = False
89928994 newPlot = True
8993- G2pwpl .PlotPatterns (G2frame ,newPlot )
8995+ G2pwpl .PlotPatterns (G2frame ,newPlot , fromTree = True )
89948996 elif G2frame .GPXtree .GetItemText (item ) == 'Unit Cells List' :
89958997 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
89968998 data = G2frame .GPXtree .GetItemPyData (item )
@@ -9021,7 +9023,7 @@ def OnShowShift(event):
90219023 if G2frame .Contour :
90229024 G2frame .Contour = False
90239025 newPlot = True
9024- G2pwpl .PlotPatterns (G2frame ,newPlot )
9026+ G2pwpl .PlotPatterns (G2frame ,newPlot , fromTree = True )
90259027 elif G2frame .GPXtree .GetItemText (item ) == 'Reflection List' : #HKLF reflections
90269028 G2frame .PatternId = G2frame .GPXtree .GetItemParent (item )
90279029 name = G2frame .GPXtree .GetItemText (G2frame .PatternId )
0 commit comments