Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
do not plot empty EBSD sets
  • Loading branch information
ralfHielscher committed Jul 15, 2016
1 parent b2da890 commit c8bc1c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions EBSDAnalysis/@EBSD/plot.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
% See also
% EBSD/plot

%
if isempty(ebsd), return; end

% create a new plot
[mtexFig,isNew] = newMtexFigure('datacursormode',{@tooltip,ebsd},varargin{:});
mP = newMapPlot('scanUnit',ebsd.scanUnit,'parent',mtexFig.gca,varargin{:});
Expand Down

0 comments on commit c8bc1c3

Please sign in to comment.