Skip to content

Commit

Permalink
Merge branch 'develop' into feature/pseudo3d_EBSD
Browse files Browse the repository at this point in the history
# Conflicts:
#	VERSION
#	plotting/plotting_tools/setColorRange.m
  • Loading branch information
ralfHielscher committed Sep 7, 2023
2 parents d1f0432 + 3e760d3 commit 361a245
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions geometry/@crystalSymmetry/crystalSymmetry.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
% set axes, mineral name and color
s.axes = axes;
s.mineral = get_option(varargin,'mineral','');
s.mineral = strtrim(regexprep(s.mineral,char(0),' '));
s.color = get_option(varargin,'color','');

if check_option(varargin,'density')
Expand Down
2 changes: 1 addition & 1 deletion geometry/@vector3d/smooth.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

% adjust caxis according to colorRange
if ~any(isnan(colorRange)) && diff(colorRange)>0
clim(sP(j).ax,colorRange);
caxis(sP(j).ax,colorRange);
end
if check_option(varargin,'log'), set(sP(j).ax,'colorScale','log'); end

Expand Down
6 changes: 5 additions & 1 deletion plotting/plotting_tools/setColorRange.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ function setColorRange(varargin)
% find maximum color range
c = zeros(length(mtexFig.children),2);
for i = 1:length(mtexFig.children)
c(i,:) = clim(mtexFig.children(i));
try
c(i,:) = clim(mtexFig.children(i));
catch
c(i,:) = caxis(mtexFig.children(i));
end
end
mi = min(c,[],1);
ma = max(c,[],1);
Expand Down

0 comments on commit 361a245

Please sign in to comment.