Ignore:
Timestamp:
Feb 1, 2011, 1:07:28 AM (10 years ago)
Author:
sommeria
Message:

various bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_object.m

    r183 r187  
    194194            theta=0;
    195195        else
    196             theta=angle(diff(xline)+i*diff(yline));
     196            theta=angle(diff(xline)+1i*diff(yline));
    197197            theta(length(xline))=theta(length(xline)-1);
    198198        end
     
    386386    end
    387387    set(hh,'Tag','proj_object')
    388     if test_patch
    389         hold on
     388     if test_patch
     389         hold on
    390390        hhh=image([xlim(1)+dx/2 xlim(2)-dx/2],[ylim(1)+dy/2 ylim(2)-dy/2],imflag,'Tag','proj_object','HitTest','off');
    391         set(hhh,'AlphaData',(flag)*0.2)% set partial transparency to the filling color
    392         PlotData.SubObject=hhh;   
    393     end
     391       set(hhh,'AlphaData',(flag)*0.2)% set partial transparency to the filling color
     392         PlotData.SubObject=hhh;   
     393     end
    394394    if isfield(PlotData,'SubObject')
    395395        set(PlotData.SubObject,'UserData',hh)%record the parent handles in the SubObjects
Note: See TracChangeset for help on using the changeset viewer.