Ignore:
Timestamp:
Apr 17, 2020, 5:58:49 PM (4 years ago)
Author:
sommeria
Message:

ima2temperature.m added and various bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_object.m

    r1071 r1080  
    150150            xline=[xline; ObjectData.Coord(1,1)];%closing the line
    151151            yline=[yline; ObjectData.Coord(1,2)];
    152         case {'plane','plane_z','volume'}
     152        case {'plane','volume'}
    153153            if ~isfield(ObjectData,'Angle')
    154                 ObjectData.Angle=[0 0];
    155             end
    156             cosphi=cos(ObjectData.Angle(1)*pi/180);%angle in radians
    157             sinphi=sin(ObjectData.Angle(1)*pi/180);%angle in radians
     154                ObjectData.Angle=[0 0 0];
     155            end
     156            cosphi=cos(ObjectData.Angle(3)*pi/180);%angle in radians
     157            sinphi=sin(ObjectData.Angle(3)*pi/180);%angle in radians
    158158            x0=xline(1); y0=yline(1);
    159159            xlim=get(haxes,'XLim');
     
    331331
    332332%% MODIFY AN EXISTING OBJECT PLOT
    333 if test_newobj==0;
     333if test_newobj==0
    334334    hh=hplot;
    335335    PlotData=get(hplot,'UserData');
     
    375375            NbDeformPoint=length(PlotData.DeformPoint);
    376376            if NbDeformPoint>nbpoints% fpoints in excess on the graph
    377                 for ii=nbpoints+1:NbDeformPoint;
     377                for ii=nbpoints+1:NbDeformPoint
    378378                    if ishandle(PlotData.DeformPoint(ii))
    379379                        delete(PlotData.DeformPoint(ii))
     
    472472                        col,'LineStyle','none','Marker','.','Tag','DeformPoint','SelectionHighlight','off','UserData',hh);
    473473                end
    474         case {'plane','volume','plane_z'}
     474        case {'plane','volume'}
    475475            hh=line(xline,yline,'Color',col);
    476476            PlotData.SubObject(1)=line(xsup,ysup,'Color',col,'LineStyle',SubLineStyle,'Tag','proj_object');
Note: See TracChangeset for help on using the changeset viewer.