@@ -42,6 +42,7 @@ def __init__(self, base, axes, item=None, color='black', zorder=3):
4242 self .data .ymax , np .fabs (self .data .ymin ))
4343 self .dqmin = min (np .fabs (self .data .qx_data ))
4444 self .connect = self .base .connect
45+
4546
4647 # Number of points on the plot
4748 self .nbins = 100
@@ -53,6 +54,11 @@ def __init__(self, base, axes, item=None, color='black', zorder=3):
5354 self .theta = np .pi / 3
5455 # Angle between the central line and the radial lines either side of it
5556 self .phi = np .pi / 8
57+ # If True, I(|Q|) will be return, otherwise,
58+ # negative q-values are allowed
59+ # Default to true on initialize
60+ # Same as BoxInteractor
61+ self .fold = True
5662 # reference of the current data averager
5763 self .averager = None
5864
@@ -173,9 +179,8 @@ def _post_data(self, new_sector=None, nbins=None):
173179
174180 # Add pi to the angles before invoking sector averaging to transform angular
175181 # range from python default of -pi,pi to 0,2pi suitable for manipulations
176- sect = self .averager (r_min = rmin , r_max = rmax , phi_min = phimin + np .pi ,
177- phi_max = phimax + np .pi , nbins = self .nbins )
178- sect .fold = True
182+ sect = self .averager (r_min = rmin , r_max = rmax , phi_min = phimin + np .pi , phi_max = phimax + np .pi , nbins = self .nbins )
183+ sect .fold = self .fold
179184 sector = sect (self .data )
180185
181186 if hasattr (sector , "dxl" ):
0 commit comments