mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Issue with `colorrange`

Open AmitS07 opened this issue 2 years ago • 3 comments

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

  1. PF plots with colorrange 1000_grain_text_fodf_pf2

  2. PF plots without colorrange 1000_grain_text_fodf_pf What result do you expect

Error Message There was not any error message

What MTEX version do you use? MTEX 5.8.1

AmitS07 avatar Oct 24 '22 19:10 AmitS07