Skip to content

Commit

Permalink
Fix inverted user colormap #131
Browse files Browse the repository at this point in the history
  • Loading branch information
mducle committed Apr 25, 2024
1 parent 2596351 commit 95a3d7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swfiles/sw_plotspec.m
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@
% Defines colors for plotting modes.
%colors = flipud(fireprint(nMode+2));
if isa(param.colormap,'function_handle')
colors = flipud(param.colormap(nMode+2));
colors = param.colormap(nMode+2);
else
if strcmpi(param.colormap,'auto')
colors = flipud(cm_fireprint(nMode+2));
colors = cm_fireprint(nMode+2);
else
if numel(param.colormap) == 3
param.colormap = param.colormap(:);
Expand Down Expand Up @@ -725,7 +725,7 @@
for ii = 1:nPlot
vMat(:,:,ii) = swConv{ii};%.*mask{ii};
end
cMat = sw_multicolor(vMat, param.colormap, axLim, param.nCol,true);
cMat = sw_multicolor(vMat, param.colormap, axLim, param.nCol);
% plot image piece-by-pice for the different Q directions
if iscell(xLabel)
xCut = xLabel{end};
Expand Down

0 comments on commit 95a3d7c

Please sign in to comment.