Skip to content

Commit a2068d0

Browse files
author
frannie
committed
Fixed bug in plotmap_blockwidths
1 parent 1239a6e commit a2068d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/plotMap_blockWidths.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function plotMap_blockWidths(job,varargin)
3636

3737
%% Define the child grain(s)
3838
clusterGrains = job.grainsPrior(job.mergeId == pGrainId(ii));
39+
clusterGrains(job.csChild);
3940
% cEBSD = job.ebsdPrior(job.ebsdPrior.id2ind(pEBSD.id));
4041
% cEBSD = cEBSD(job.csChild);
4142

@@ -148,7 +149,7 @@ function plotMap_blockWidths(job,varargin)
148149
% if check_option(varargin,'grains')
149150
% Get all 111 vector3ds for each grain:
150151
hh = Miller({1,1,1},{1,-1,1},{-1,1,1},{1,1,-1},job.p2c.CS);
151-
hh = hh(job.packetId(job.mergeId == pGrainId))';
152+
hh = hh(job.packetId(cGrains.id))';
152153
zz = pGrain.meanOrientation.project2FundamentalRegion.*hh;
153154

154155
% drawnow;

0 commit comments

Comments
 (0)