Changeset 210 for trunk/src/mouse_up.m


Ignore:
Timestamp:
Feb 28, 2011, 11:29:08 PM (13 years ago)
Author:
sommeria
Message:

correction bug for vector plot (Fixscale did not work), extensions for 3D fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r204 r210  
    248248end
    249249
    250 %% zoom in by a factor 2 if no new figure is created
     250%% zoom in or out by a factor 2 if no new figure is created
    251251if test_zoom
    252252    xy=get(currentaxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates
    253253    xlim=get(currentaxes,'XLim');
    254254    ylim=get(currentaxes,'YLim');
    255     if  isequal(get(currentfig,'SelectionType'),'normal');%if left button has been pressed
     255    if  isequal(get(currentfig,'SelectionType'),'normal');%if left button has been pressed, zoom in by a factor of 2
    256256        xlim(1)=0.5*xy(1,1)+0.5*xlim(1);
    257257        xlim(2)=0.5*xy(1,1)+0.5*xlim(2);
     
    268268        %             ylim_new(1)=(1+alpha)*ylim(1)/2+(1-alpha)*ylim(2)/2;
    269269        %             ylim_new(2)=(1-alpha)*ylim(1)/2+(1+alpha)*ylim(2)/2;
    270         if isfield(AxeData,'RangeX') && isfield(AxeData,'RangeY')
     270        if isfield(AxeData,'RangeX')&& isfield(AxeData,'RangeY')
    271271            xlim(1)=max(AxeData.RangeX(1),xlim(1));
    272272            xlim(2)=min(AxeData.RangeX(2),xlim(2));
     
    276276                set(hhuvmat.zoom,'Value',0)
    277277                set(hhuvmat.zoom,'BackgroundColor',[0.7 0.7 0.7])
    278                 set(hhuvmat.FixedLimits,'Value',0)
    279                 set(hhuvmat.FixedLimits,'BackgroundColor',[0.7 0.7 0.7])
     278                set(hhuvmat.FixLimits,'Value',0)
     279                set(hhuvmat.FixLimits,'BackgroundColor',[0.7 0.7 0.7])
    280280            end
    281281        end
Note: See TracChangeset for help on using the changeset viewer.