Remove Max, Min, and Miller Indices Labels from Pole Figures for Triple Junction Distribution

333 views
Skip to first unread message

Graden Hardy

unread,
Feb 13, 2014, 1:33:57 AM2/13/14
to

Using MTEX 3.5.0 on Matlab 7.12.0 I am utilizing the plot(pf) function to plot the stereographic projection of a selected grain boundary plane from a simulated triple junction distribution.  I do this by generating the spherical coordinates of the boundary plane and inputting these as pole figure data for a material with triclinic crystal and sample symmetry.  I generate stereographic projections across my distribution space which when combined allow one to appreciate the boundary orientation through the space.  I have attached the complete figure.  I have shrunk the circles very small and plotted thousands of them to give my distribution figure a nice resolution.  The apparent cells are a result of my discrete space.  The figure looks good though I need to remove the Max, Min, and {100} labels.  They interfere with my projections and are not applicable to the distribution.  I have not found built in functionality to allow me to do this and I couldn't find where in the source code I could manually remove it.  Once I remove those labels my figures are practically ready for publication.  I have attached my code though it just calls the standard functions.

%% Import Script for PoleFigure Data
%
% This script was automatically created by the import wizard. You should
% run the whoole script or parts of it in order to import your data. There
% is no problem in making any changes to this script.

%% Specify Crystal and Specimen Symmetries

% crystal symmetry
CS = symmetry('-1', [1 1 1], [90,90,90]*degree, 'X||a*', 'Y||b*', 'Z||c*', 'color', 'light blue');

% specimen symmetry
SS = symmetry('triclinic');

% plotting convention
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','outOfPlane');

%% Specify File Names

% path to files
pname = 'C:\Users\Graden Hardy\Documents\Documents\Research\Programming\Programs\Graphics\MTEX\mtex-3.5.0\data\TJD_Plots';

% which files to be imported
fname = {...
  [pname '\N1VectorsRandom_0.txt'],[pname '\N1VectorsRandom_1.txt'],[pname '\N1VectorsRandom_2.txt'],...
  [pname '\N1VectorsRandom_3.txt'],[pname '\N1VectorsRandom_4.txt'],[pname '\N1VectorsRandom_5.txt'],...
  [pname '\N1VectorsRandom_6.txt'],[pname '\N1VectorsRandom_7.txt'],[pname '\N1VectorsRandom_8.txt'],...
  [pname '\N1VectorsRandom_9.txt'],...
  [pname '\N1VectorsRandom_10.txt'],[pname '\N1VectorsRandom_11.txt'],...
  [pname '\N1VectorsRandom_12.txt'],[pname '\N1VectorsRandom_13.txt'],[pname '\N1VectorsRandom_14.txt'],...
  [pname '\N1VectorsRandom_15.txt'],...
  [pname '\N1VectorsRandom_16.txt'],[pname '\N1VectorsRandom_17.txt'],...
  };
  
%% Specify Miller Indice

h = { ...
    Miller(1,0,0,CS),Miller(1,0,0,CS),Miller(1,0,0,CS),...
    Miller(1,0,0,CS),Miller(1,0,0,CS),Miller(1,0,0,CS),...
    Miller(1,0,0,CS),Miller(1,0,0,CS),Miller(1,0,0,CS),...
    Miller(1,0,0,CS),...
    Miller(1,0,0,CS),Miller(1,0,0,CS),...
    Miller(1,0,0,CS),Miller(1,0,0,CS),Miller(1,0,0,CS),...
    Miller(1,0,0,CS),...
    Miller(1,0,0,CS),Miller(1,0,0,CS),...
    };
 
%% Import the Data
%create a Pole Figure variable containing the data
pf = loadPoleFigure(fname,h,CS,SS,'interface','generic',...
  'ColumnNames', { 'Polar Angle' 'Azimuth Angle' 'Intensity'});
plot(pf,'projection','stereo','MarkerSize',1)
% mtexColorMap white2black
% setcolorrange([0, 1], 'all')
colorbar

export_fig N1_Random_All.png



N1_Random_All.png
Message has been deleted

Ralf Hielscher

unread,
Feb 21, 2014, 3:59:04 AM2/21/14
to mtex...@googlegroups.com
Dear Graden Hardy,

the following will remove all text from your current figure

h = findall(gcf,'type','text');
set(h,'visible','off')

I hope this helps,

Ralf.

Graden Hardy

unread,
Feb 21, 2014, 4:29:04 PM2/21/14
to
This works perfectly.  That solves my problem.  Thank you Ralf so much for your help.  I really appreciate it.  Long live MTEX.

-Graden
Reply all
Reply to author
Forward
0 new messages