geoscience-community-codes / GISMO

GISMO - a seismic data analysis toolbox for MATLAB
http://geoscience-community-codes.github.io/GISMO/
117 stars 46 forks source link

bug in wiggleplot.m ? #20

Open gthompson opened 8 years ago

gthompson commented 8 years ago

From @GoogleCodeExporter on August 1, 2015 21:51

In wiggleplot.m from line 53 on, should we use get(c(ord),'sta'), instead of 
get(c,'sta')?

% replace dates with station names if stations are different
if ~check(c,'STA')
    sta  = get(c,'STA');
    chan = get(c,'CHAN');

    for i=1:get(c,'TRACES')
        labels(i) = strcat( sta(i) , '_' , chan(i) );
    end
    set( gca , 'YTick' , [1:1:get(c,'TRACES')] );
    set( gca , 'YTickLabel' , labels );
end

Original issue reported on code.google.com by lidun...@gmail.com on 17 Sep 2012 at 4:37

Copied from original issue: giseislab/gismotools#33

gthompson commented 8 years ago

From @GoogleCodeExporter on August 1, 2015 21:51

I haven't tested such as change, but based on the suggestion it seems quite 
reasonable. I say go ahead and change it and then just look out of for issues.

Original comment by mew...@gmail.com on 17 Sep 2012 at 2:30