@@ -209,10 +209,13 @@ def OnPlotKeyPress(event):
209209 G2frame .FixedLimits ['dylims' ] = ['' ,'' ]
210210 newPlot = True
211211 elif event .key in ['shift+1' ,'!' ]: # save current plot settings as defaults
212+ # shift+1 assumes US keyboard
212213 print ('saving plotting defaults for' ,G2frame .GPXtree .GetItemText (G2frame .PatternId ))
213214 data = G2frame .GPXtree .GetItemPyData (G2frame .PatternId )
214215 data [0 ]['PlotDefaults' ] = copy .deepcopy ([
215- Plot .get_xlim (),Plot .get_ylim (),Page .plotStyle ])
216+ Plot .get_xlim (),Plot .get_ylim (),Page .plotStyle ,
217+ G2frame .SinglePlot , G2frame .Contour , G2frame .Weight ,
218+ G2frame .plusPlot , G2frame .SubBack ])
216219 elif event .key == 'X' and plottype == 'PWDR' :
217220 G2frame .CumeChi = not G2frame .CumeChi
218221 elif event .key == 'e' and plottype in ['SASD' ,'REFD' ]:
@@ -426,7 +429,7 @@ def OnPlotKeyPress(event):
426429 G2frame .selections = None
427430 dlg .Destroy ()
428431 newPlot = True
429- elif event .key in ['+' ,'=' ]:
432+ elif event .key in ['+' ,'=' , 'shift+=' ]: # assumes US keyboard
430433 G2frame .plusPlot = (G2frame .plusPlot + 1 )% 3
431434 elif event .key == '/' :
432435 Page .plotStyle ['Normalize' ] = not Page .plotStyle ['Normalize' ]
@@ -1694,7 +1697,8 @@ def onPartialConfig(event):
16941697 #=====================================================================================
16951698 elif 'PlotDefaults' in data [0 ] and fromTree : # set style from defaults saved with '!'
16961699 #print('setting plot style defaults')
1697- xlim ,ylim ,styleDict = data [0 ]['PlotDefaults' ]
1700+ (xlim , ylim , styleDict , G2frame .SinglePlot , G2frame .Contour , G2frame .Weight ,
1701+ G2frame .plusPlot , G2frame .SubBack ) = data [0 ]['PlotDefaults' ]
16981702 Page .plotStyle = copy .copy (styleDict )
16991703 newPlot = True # prevent carrying limits over (may not be needed here)
17001704 #=====================================================================================
@@ -2789,7 +2793,8 @@ def onPartialConfig(event):
27892793 linestyle = pLinStyl )
27902794 if 'PlotDefaults' in data [0 ] and fromTree : # set plot limists from defaults saved with '!'
27912795 #print('setting plot defaults')
2792- xlim ,ylim ,styleDict = data [0 ]['PlotDefaults' ]
2796+ (xlim , ylim , styleDict , G2frame .SinglePlot , G2frame .Contour , G2frame .Weight ,
2797+ G2frame .plusPlot , G2frame .SubBack ) = data [0 ]['PlotDefaults' ]
27932798 Page .toolbar .push_current ()
27942799 Plot .set_xlim ((xlim [0 ],xlim [1 ]))
27952800 Plot .set_ylim ((ylim [0 ],ylim [1 ]))
0 commit comments