plotPDF xOz plane ? #1863
ThomasChauve
started this conversation in
Tips and Tricks
Replies: 4 comments 6 replies
-
Hi Thomas,
I am not sure if that nwill answer your question, but at the moment you have the pole figure labelling for mtex on, so fitst you have to switch this off in the beginning
setMTEXpref('pfAnnotations',@(varargin) 1);
and then annotate your pole figures the way you want after you plot
annotate (zvector,’label’,{‘Y’},’BackgroundColor’,’w’)
Juast change the letters accordingly to what you want in relation to xvecxtor, yvector and zvector
ccheers
Luiz
On 12 Jun 2023, at 12:30, Chauve ***@***.******@***.***>> wrote:
Hello
I have a simple question is it possible to plot a pole figure in with y-axis outofPlane (i.e. xOz plane) other then rotation the orientation.
%% figure
h = Miller(0,0,1,CS{1},'hkl');
figure
setMTEXpref('FontSize',25)
plotx2east
plotPDF(odf_TGI03,h,'antipodal','resolution',5*degree);
[image]<https://user-images.githubusercontent.com/9338747/245111896-68ffd6e7-d5a0-4370-a5a0-7d0100f53841.png>
Best
Thomas
—
Reply to this email directly, view it on GitHub<#1863>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALE5IN727IHT6QDSLQMVL3LXK3VWBANCNFSM6AAAAAAZDFIQCE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1863", "url": "#1863", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
1 reply
-
or in a more decent (maybe not that elegant) way
annotate([xvector,yvector,-zvector],'label',{'X','Z','Y'},'backgroundcolor','w','MarkerSize',15,'FontSize',20)
cheers
Luiz
On 12 Jun 2023, at 12:30, Chauve ***@***.******@***.***>> wrote:
Hello
I have a simple question is it possible to plot a pole figure in with y-axis outofPlane (i.e. xOz plane) other then rotation the orientation.
%% figure
h = Miller(0,0,1,CS{1},'hkl');
figure
setMTEXpref('FontSize',25)
plotx2east
plotPDF(odf_TGI03,h,'antipodal','resolution',5*degree);
[image]<https://user-images.githubusercontent.com/9338747/245111896-68ffd6e7-d5a0-4370-a5a0-7d0100f53841.png>
Best
Thomas
—
Reply to this email directly, view it on GitHub<#1863>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALE5IN727IHT6QDSLQMVL3LXK3VWBANCNFSM6AAAAAAZDFIQCE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1863", "url": "#1863", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Thomas
I think this is not implemented, but maybe Ralf or Rüdiger have a work around
If you use import wizard you can already define a rotation there (in Euler), but still, there is the rotation like you have
cheers
Luiz
On 12 Jun 2023, at 13:00, Chauve ***@***.******@***.***>> wrote:
Thank this will help me but I also want to rotate the data. For now I use :
rot90=rotation.byAxisAngle(xvector,90*degree);
pf = rotate(odf_TGI03,rot90)
This gives me :
[TGI03_xoz]<https://user-images.githubusercontent.com/9338747/245118343-b9149bc7-e812-413a-b01c-59269c87f60b.png>
[TGI03_xoy]<https://user-images.githubusercontent.com/9338747/245118353-13a1a04a-188b-4cff-99a2-1d67a036ba2b.png>
Then if I add you renaming of label it will wok. But to me it is not really efficient way. I just wonder if there is an option somewhere that I miss.
—
Reply to this email directly, view it on GitHub<#1863 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALE5IN4W3U4TUAWQSLVOYNTXK3ZE7ANCNFSM6AAAAAAZDFIQCE>.
You are receiving this because you commented.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1863 (reply in thread)", "url": "#1863 (reply in thread)", "name": "View Discussion" }, "description": "View this Discussion on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Thomas, with MTEX 6.0.beta1 we have introduced the option to arbitrarily align pole figures. The syntax is as follows how2plot = plottingConvention;
how2plot.outOfScreen = yvector;
how2plot.east = zvector
plotPDF(odf, Miller(1,0,0,odf.CS), how2plot) It would be very nice if you could test this new feature. All the best, |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I have a simple question is it possible to plot a pole figure in with y-axis outofPlane (i.e. xOz plane) other then rotation the orientation.
Best
Thomas
Beta Was this translation helpful? Give feedback.
All reactions