Skip to content

Commit

Permalink
fixed problem with plotting axes on colorbar in Matlab 2016a
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmsten committed Apr 5, 2017
1 parent 5d88bff commit 5f3f163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plotBathyKalmanStep.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function plotBathyKalmanStep(bathy, priorBathy)
h=colorbar('peer', gca); set( h, 'ydir', 'rev' );
foo = get( h, 'yticklabel' );
foo = strrep(foo,'-','');
foo = num2str( abs(str2num(char(foo))), '%.1f' );
%foo = num2str( abs(str2num(char(foo))), '%.1f' );
set( h, 'yticklabel', foo );
set( get(h,'title'), 'string', '(m)' );

Expand All @@ -55,7 +55,7 @@ function plotBathyKalmanStep(bathy, priorBathy)
h=colorbar('peer', gca); set( h, 'ydir', 'rev' );
foo = get( h, 'yticklabel' );
foo = strrep(foo,'-','');
foo = num2str( abs(str2num(foo)), '%.1f' );
%foo = num2str( abs(str2num(foo)), '%.1f' );
set( h, 'yticklabel', foo );
set( get(h,'title'), 'string', '(m)' );

Expand All @@ -67,7 +67,7 @@ function plotBathyKalmanStep(bathy, priorBathy)
title('K')
h=colorbar('peer', gca);
foo = get( h, 'yticklabel' );
foo = num2str( abs(str2num(foo)), '%.1f' );
%foo = num2str( abs(str2num(foo)), '%.1f' );
set( h, 'yticklabel', foo );

%
Expand Down

0 comments on commit 5f3f163

Please sign in to comment.