Ignore:
Timestamp:
Jul 12, 2024, 8:46:38 AM (3 months ago)
Author:
sommeria
Message:

civ_3D corrected, automatic vector position modified in civ_series for better symmetry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r1152 r1158  
    13311331    n=size(xc);
    13321332    xN=NaN*ones(size(xc));
    1333     matx=[xc(:)-uc(:)/2 xc(:)+uc(:)/2 xN(:)]';
     1333    matx=[xc(:) xc(:)+uc(:) xN(:)]';
    13341334    matx=reshape(matx,1,3*n(2));
    1335     maty=[yc(:)-vc(:)/2 yc(:)+vc(:)/2 xN(:)]';
     1335    maty=[yc(:) yc(:)+vc(:) xN(:)]';
    13361336    maty=reshape(maty,1,3*n(2));
    13371337   
     
    13391339    arrowplus=rot*[uc;vc];
    13401340    arrowmoins=rot'*[uc;vc];
    1341     x1=xc+uc/2-arrowplus(1,:);
    1342     x2=xc+uc/2;
    1343     x3=xc+uc/2-arrowmoins(1,:);
    1344     y1=yc+vc/2-arrowplus(2,:);
    1345     y2=yc+vc/2;
    1346     y3=yc+vc/2-arrowmoins(2,:);
     1341    % x1=xc+uc/2-arrowplus(1,:);
     1342    % x2=xc+uc/2;
     1343    % x3=xc+uc/2-arrowmoins(1,:);
     1344    % y1=yc+vc/2-arrowplus(2,:);
     1345    % y2=yc+vc/2;
     1346    % y3=yc+vc/2-arrowmoins(2,:);
     1347    x1=xc+uc-arrowplus(1,:);
     1348    x2=xc+uc;
     1349    x3=xc+uc-arrowmoins(1,:);
     1350    y1=yc+vc-arrowplus(2,:);
     1351    y2=yc+vc;
     1352    y3=yc+vc-arrowmoins(2,:);
    13471353    matxar=[x1(:) x2(:) x3(:) xN(:)]';
    13481354    matxar=reshape(matxar,1,4*n(2));
Note: See TracChangeset for help on using the changeset viewer.