mtex
mtex copied to clipboard
Issue with `colorrange`
What do you want to do? I want to plot the pole figure with customize MRD scale What data do you have? I did use `colorrange' command in the plotPDF option to do the same. I am able to do that, but the plots look very much bizarre. See the plots below What code do you use? The script is here
%% code to plot Texture form orientation file%%
CS = crystalSymmetry('hexagonal');
SS = specimenSymmetry('monoclinic');
pf = readmatrix('caxis_1000text.txt');
ori = loadOrientation_generic(pf,'CS',CS,'SS',SS, 'ColumnNames', ...
{'Euler1' 'Euler2' 'Euler3'},'Columns',[1,2,3],'Bunge');
odf = calcDensity(ori);
% PF plot
h = Miller({0,0,0,1},ori.CS);
plotPDF(odf,h, 'projection', 'eangle','antipodal', 'false','contourf','colorrange',[0 30],'complete', 'upper') % 'colorRange','equal' for only on ecolor map
mtexColorMap('viridis')
mtexColorbar
figure()
What result do you get
-
PF plots with
colorrange
-
PF plots without
colorrange
What result do you expect
Error Message There was not any error message
What MTEX version do you use? MTEX 5.8.1