From c8bc1c3dac5fb6c7667c314c5c50b6917f3c3f7c Mon Sep 17 00:00:00 2001 From: Ralf Hielscher Date: Fri, 15 Jul 2016 19:33:41 +0200 Subject: [PATCH] small fix do not plot empty EBSD sets --- EBSDAnalysis/@EBSD/plot.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EBSDAnalysis/@EBSD/plot.m b/EBSDAnalysis/@EBSD/plot.m index b33d4a6a4..180c37f34 100644 --- a/EBSDAnalysis/@EBSD/plot.m +++ b/EBSDAnalysis/@EBSD/plot.m @@ -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{:});