@@ -44,6 +44,8 @@ def __init__(self, base, axes, item=None, color="black", zorder=3):
4444 # Connect the plot to event
4545 self .connect = self .base .connect
4646
47+ self .fold : bool = True
48+
4749 # Compute qmax limit to reset the graph
4850 x = numpy .power (max (self .data .xmax , numpy .fabs (self .data .xmin )), 2 )
4951 y = numpy .power (max (self .data .ymax , numpy .fabs (self .data .ymin )), 2 )
@@ -146,6 +148,7 @@ def _post_data(self, nbins=None):
146148 if nbins is None :
147149 nbins = self .nbins
148150 sect = SectorQ (r_min = 0.0 , r_max = radius , phi_min = phimin + numpy .pi , phi_max = phimax + numpy .pi , nbins = nbins )
151+ sect .fold = self .fold
149152
150153 sector = sect (self .data )
151154 # Create 1D data resulting from average
@@ -250,6 +253,7 @@ def getParams(self):
250253 params ["Phi [deg]" ] = self .main_line .theta * 180 / numpy .pi
251254 params ["Delta_Phi [deg]" ] = numpy .fabs (self .left_line .phi * 180 / numpy .pi )
252255 params ["nbins" ] = self .nbins
256+ params ["fold" ] = self .fold
253257 return params
254258
255259 def setParams (self , params ):
@@ -269,6 +273,7 @@ def setParams(self, params):
269273 params ["Delta_Phi [deg]" ] = MIN_PHI
270274
271275 self .nbins = int (params ["nbins" ])
276+ self .fold = params ["fold" ]
272277 self .main_line .theta = main
273278 # Reset the slicer parameters
274279 self .main_line .update ()
0 commit comments