Ignore:
Timestamp:
Apr 22, 2010 11:02:46 AM (13 years ago)
Author:
srkline
Message:

fixed display bug in NSORT where normalizing to the 3rd (high Q) data file would not be displayed with the proper overlap. The data file was, however, written out correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/AvgGraphics.ipf

    r696 r700  
    366366         
    367367        //first clear the old draw Layer 
    368         DoWindow/F SANS_Data 
    369         if(V_flag ==0) 
     368//      DoWindow/F SANS_Data 
     369        if(WinType("SANS_Data") == 0) 
    370370                Abort "No SANS data. Use'Display Raw Data' to display a 2D data file" 
    371371        Endif 
    372         SetDrawLayer/K UserFront 
    373         SetDrawLayer UserFront 
     372        SetDrawLayer/W=SANS_Data/K UserFront 
     373        SetDrawLayer/W=SANS_Data UserFront 
    374374         
    375375        //what average type are we drawing for? 
     
    400400        if(cmpstr(av_type,"Circular")==0) 
    401401                //clear the drawing 
    402         //      DoWindow/F SANS_Data 
    403         //      SetDrawLayer/K UserFront         
     402 
    404403                //go back to the average panel 
    405                 DoWindow/F Average_Panel 
     404//              DoWindow/F Average_Panel 
    406405         
    407406                Return 0                //exit the Draw routine 
     
    440439 
    441440                //go back to the average panel 
    442                 DoWindow/F Average_Panel 
     441//              DoWindow/F Average_Panel 
    443442          
    444443                Return 0                //exit the Draw routine 
     
    544543         
    545544        //go back to the average panel 
    546         DoWindow/F Average_Panel 
     545//      DoWindow/F Average_Panel 
    547546         
    548547        Return 0 
     
    703702        Variable x0,y0,rad,rr,gg,bb,thick 
    704703         
    705         DoWindow/F SANS_Data 
    706         SetDrawLayer UserFront 
    707         SetDrawEnv xcoord= bottom,ycoord= left,linefgc= (rr,gg,bb),linethick= (thick),fillpat=0 
    708         DrawOval x0-rad,y0+rad,x0+rad,y0-rad                    //left,top,right,bottom 
     704//      DoWindow/F SANS_Data 
     705        SetDrawLayer/W=SANS_Data UserFront 
     706        SetDrawEnv/W=SANS_Data xcoord= bottom,ycoord= left,linefgc= (rr,gg,bb),linethick= (thick),fillpat=0 
     707        DrawOval/W=SANS_Data x0-rad,y0+rad,x0+rad,y0-rad                        //left,top,right,bottom 
    709708End 
    710709 
     
    730729        y1 = FindYLeft(x0,y0,slope,intcp) 
    731730         
    732         DoWindow/F SANS_Data 
    733         SetDrawLayer UserFront 
    734         SetDrawEnv xcoord= bottom,ycoord= left,linefgc= (rr,gg,bb),linethick= (thick) 
    735         DrawLine x0,y0, x1,y1 
     731//      DoWindow/F SANS_Data 
     732        SetDrawLayer/W=SANS_Data UserFront 
     733        SetDrawEnv/W=SANS_Data xcoord= bottom,ycoord= left,linefgc= (rr,gg,bb),linethick= (thick) 
     734        DrawLine/W=SANS_Data x0,y0, x1,y1 
    736735End 
    737736 
     
    757756        y1 = FindYRight(x0,y0,slope,intcp) 
    758757         
    759         DoWindow/F SANS_Data 
    760         SetDrawLayer UserFront 
    761         SetDrawEnv xcoord= bottom,ycoord= left,linefgc= (rr,gg,bb),linethick= (thick) 
    762         DrawLine x0,y0, x1,y1 
     758//      DoWindow/F SANS_Data 
     759        SetDrawLayer/W=SANS_Data UserFront 
     760        SetDrawEnv/W=SANS_Data xcoord= bottom,ycoord= left,linefgc= (rr,gg,bb),linethick= (thick) 
     761        DrawLine/W=SANS_Data x0,y0, x1,y1 
    763762End 
    764763 
Note: See TracChangeset for help on using the changeset viewer.