Changeset 1207 for sans/Dev/branches/elliptical_averaging/NCNR_User_Procedures/Reduction/SANS/AvgGraphics.ipf
- Timestamp:
- Sep 6, 2019 2:29:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/branches/elliptical_averaging/NCNR_User_Procedures/Reduction/SANS/AvgGraphics.ipf
r1165 r1207 38 38 Variable/G root:myGlobals:Drawing:gDrawQCtr = 0 39 39 Variable/G root:myGlobals:Drawing:gDrawQDelta = 1 40 Variable/G root:myGlobals:Drawing:gDrawRAxes = 1 40 41 41 42 //return to root … … 131 132 AnnularAverageTo1D(type) 132 133 break 134 case "Elliptical": 135 EllipticalAverageTo1D(type) 136 break 133 137 case "Circular": 134 138 case "Sector": 135 139 //circular or sector 136 140 CircularAverageTo1D(type) //graph is drawn here 141 break 142 case "2D_NXcanSAS": 143 WriteNxCanSAS2D(type,"",1) 137 144 break 138 145 case "2D ASCII": … … 156 163 case "2D ASCII": 157 164 case "QxQy ASCII": 165 case "2D_NXcanSAS": 158 166 break 159 167 default: … … 225 233 case "2D ASCII": // execute if case matches expression 226 234 case "QxQy ASCII": 235 case "2D_NXcanSAS": 227 236 String/G root:myGlobals:Drawing:gDrawInfoStr = ReplaceStringByKey("AVTYPE", tempStr, choice, "=", ";") 228 237 Button P_DoAvg,title="Save ASCII" … … 232 241 case "Sector_PlusMinus": 233 242 case "Rectangular": 243 case "Elliptical": 234 244 case "Annular": 235 245 String/G root:myGlobals:Drawing:gDrawInfoStr = ReplaceStringByKey("AVTYPE", tempStr, choice, "=", ";") … … 253 263 strswitch(choice) // string switch 254 264 case "2D ASCII": 255 case "QxQy ASCII": 265 case "QxQy ASCII": 266 case "2D_NXcanSAS": 256 267 case "Circular": //disable everything for these three choices 257 268 SetVariable Phi_p,disable=yes … … 260 271 SetVariable DPhi_p,disable=yes 261 272 SetVariable width_p,disable=yes 273 SetVariable RAxes_p,disable=yes 262 274 popupmenu sides,disable=yes 263 275 break … … 269 281 SetVariable DPhi_p,disable=no 270 282 SetVariable width_p,disable=yes 283 SetVariable RAxes_p,disable=yes 271 284 popupmenu sides,disable=no 272 285 break … … 277 290 SetVariable DPhi_p,disable=yes 278 291 SetVariable width_p,disable=no 292 SetVariable RAxes_p,disable=yes 279 293 popupmenu sides,disable=no 280 294 break … … 285 299 SetVariable DPhi_p,disable=yes 286 300 SetVariable width_p,disable=yes 301 SetVariable RAxes_p,disable=yes 287 302 popupmenu sides,disable=yes 303 break 304 case "Elliptical": 305 SetVariable Phi_p,disable=no 306 SetVariable Qctr_p,disable=yes 307 SetVariable Qdelta_p,disable=yes 308 SetVariable DPhi_p,disable=yes 309 SetVariable width_p,disable=yes 310 SetVariable RAxes_p,disable=no 311 popupmenu sides,disable=no 288 312 break 289 313 default: // optional default expression executed … … 307 331 PopupMenu av_choice,pos={61,7},size={144,20},proc=AvTypePopMenuProc,title="AverageType" 308 332 PopupMenu av_choice,help={"Select the type of average to perform, then make the required selections below and click \"DoAverage\" to plot the results"} 309 PopupMenu av_choice,mode=1,popvalue="Circular",value= #"\"Circular;Sector;Annular;Rectangular; 2D ASCII;QxQy ASCII;Sector_PlusMinus;\""333 PopupMenu av_choice,mode=1,popvalue="Circular",value= #"\"Circular;Sector;Annular;Rectangular;Elliptical;2D_NXcanSAS;2D ASCII;QxQy ASCII;Sector_PlusMinus;\"" 310 334 Button ave_help,pos={260,7},size={25,20},proc=ShowAvePanelHelp,title="?" 311 335 Button ave_help,help={"Show the help file for averaging options"} … … 326 350 SetVariable DPhi_p,help={"Enter the +/- range (0,45) of azimuthal angles to be included in the average. The bounding angles will be drawin in blue."} 327 351 SetVariable DPhi_p,limits={0,90,1},value= root:myGlobals:Drawing:gDrawDPhi 352 SetVariable RAxes_p,pos={166,176},size={110,15},proc=DeltaPhiSetVarProc,title="Axis Ratio" 353 SetVariable RAxes_p,help={"Enter the ratio of the minor to major axes for an isointensity contour. By definition, this value should be less than 1."} 354 SetVariable RAxes_p,limits={0,1,0.001},value= root:myGlobals:Drawing:gDrawRAxes 328 355 SetVariable width_p,pos={15,155},size={115,15},proc=WidthSetVarProc,title="Width (pixels)" 329 356 SetVariable width_p,help={"Enter the total width of the rectangular section in pixels. The bounding lines will be drawn in blue."}
Note: See TracChangeset
for help on using the changeset viewer.