Changeset 107 for trunk/src/plot_field.m


Ignore:
Timestamp:
Jul 26, 2010, 11:20:39 PM (14 years ago)
Author:
sommeria
Message:

aver_stat and time_series: bug repairs for reading images, for time series, the projection of images on a line now works
get_field: various bug repairs, export field on work space activated
struct2nc and struct2nc_toolbox.m: small bug repaired
nomtype2pair: test on string input introduced to avoid error
cell2tab: test on multiline input introduced
civ: pb about cell repair (bug with recent versions of matlab)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r105 r107  
    837837        if isempty(hima)
    838838            tag=get(haxes,'Tag');
    839             hima=imagesc(AX,AY,B,[MinA MaxA]);
     839            if MinA<MaxA
     840                hima=imagesc(AX,AY,B,[MinA MaxA]);
     841            else
     842                hima=imagesc(AX,AY,B,[MaxA-1 MaxA]);
     843            end
    840844            set(hima,'Tag','ima','HitTest','off')
    841845            set(haxes,'Tag',tag);%preserve the axes tag (removed by image fct !!!)       
     
    845849                caxis([MinA MaxA])
    846850            else
    847                 caxis([MinA MinA+1])
     851                caxis([MaxA-1 MaxA])
    848852            end
    849853            set(hima,'XData',AX);
Note: See TracChangeset for help on using the changeset viewer.