diff --git a/Graph/TimeSeries/graphTimeSeriesTimeDepth.m b/Graph/TimeSeries/graphTimeSeriesTimeDepth.m index ce2b20c13..085f02203 100644 --- a/Graph/TimeSeries/graphTimeSeriesTimeDepth.m +++ b/Graph/TimeSeries/graphTimeSeriesTimeDepth.m @@ -70,7 +70,7 @@ % xPcolor = [time.data(1:end-1) - diff(time.data)/2; time.data(end) - (time.data(end)-time.data(end-1))/2]; % yPcolor = [depth.data(1:end-1) - diff(depth.data)/2; depth.data(end) - (depth.data(end)-depth.data(end-1))/2]; -h = pcolor(ax, xPcolor, yPcolor, double(var.data')); +h = pcolor(ax, double(xPcolor), double(yPcolor), double(var.data')); set(h, 'FaceColor', 'flat', 'EdgeColor', 'none'); cb = colorbar(); diff --git a/Graph/TimeSeries/graphTimeSeriesTimeFrequency.m b/Graph/TimeSeries/graphTimeSeriesTimeFrequency.m index 5f4cfae0f..b9e61c249 100644 --- a/Graph/TimeSeries/graphTimeSeriesTimeFrequency.m +++ b/Graph/TimeSeries/graphTimeSeriesTimeFrequency.m @@ -70,7 +70,7 @@ % xPcolor = [time.data(1:end-1) - diff(time.data)/2; time.data(end) - (time.data(end)-time.data(end-1))/2]; % yPcolor = [freq.data(1:end-1) - diff(freq.data)/2; freq.data(end) - (freq.data(end)-freq.data(end-1))/2]; -h = pcolor(ax, xPcolor, yPcolor, double(var.data')); +h = pcolor(ax, double(xPcolor), double(yPcolor), double(var.data')); set(h, 'FaceColor', 'flat', 'EdgeColor', 'none'); cb = colorbar(); diff --git a/Graph/TimeSeries/graphTimeSeriesTimeFrequencyDirection.m b/Graph/TimeSeries/graphTimeSeriesTimeFrequencyDirection.m index 7acdb14cc..7c3144d64 100644 --- a/Graph/TimeSeries/graphTimeSeriesTimeFrequencyDirection.m +++ b/Graph/TimeSeries/graphTimeSeriesTimeFrequencyDirection.m @@ -92,7 +92,7 @@ X(i, :) = r*sin(theta(i)); end -h = pcolor(ax, X, Y, double([squeeze(sswvData(iTime, :, :)), sswvData(iTime, :, 1)']')); % we need to repeat the first values at the end +h = pcolor(ax, double(X), double(Y), double([squeeze(sswvData(iTime, :, :)), sswvData(iTime, :, 1)']')); % we need to repeat the first values at the end axis equal tight shading flat set(ax, ... diff --git a/Graph/pcolorMooring2DVar.m b/Graph/pcolorMooring2DVar.m index b717b2550..35e1fbe04 100644 --- a/Graph/pcolorMooring2DVar.m +++ b/Graph/pcolorMooring2DVar.m @@ -199,7 +199,7 @@ function pcolorMooring2DVar(sample_data, varName, isQC, saveToFile, exportDir) dataVar(~iGoodHeight) = []; dataVar = reshape(dataVar, nGoodTime, nGoodHeight); - hPcolorVar(i) = pcolor(hAxMooringVar, xPcolor, yPcolor, double(dataVar')); + hPcolorVar(i) = pcolor(hAxMooringVar, double(xPcolor), double(yPcolor), double(dataVar')); set(hPcolorVar(i), 'FaceColor', 'flat', 'EdgeColor', 'none'); % Let's redefine properties after pcolor to make sure grid lines appear