Plotting Laguerre Gaussian beam intensity in transverse and line profile via center?
Hi can someone please help me with Laguerre Gaussian beam(looks like a doughnut or vortex)?

tikz-pgf
add a comment |
Hi can someone please help me with Laguerre Gaussian beam(looks like a doughnut or vortex)?

tikz-pgf
1
Like this tex.stackexchange.com/questions/333330/… ?
– Symbol 1
Feb 23 at 4:37
The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.
– RD1153
Feb 23 at 4:51
2
Here are additional possibilities. No, Laguerre polynomials are not too complex to be plotted, but this is a LaTeX site, so if you provide equations and an example, people will be happy to help you, but they are less eager to dig out from the internet and guess what you might want.
– marmot
Feb 23 at 5:02
add a comment |
Hi can someone please help me with Laguerre Gaussian beam(looks like a doughnut or vortex)?

tikz-pgf
Hi can someone please help me with Laguerre Gaussian beam(looks like a doughnut or vortex)?

tikz-pgf
tikz-pgf
edited Feb 23 at 4:46
RD1153
asked Feb 23 at 4:32
RD1153RD1153
804
804
1
Like this tex.stackexchange.com/questions/333330/… ?
– Symbol 1
Feb 23 at 4:37
The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.
– RD1153
Feb 23 at 4:51
2
Here are additional possibilities. No, Laguerre polynomials are not too complex to be plotted, but this is a LaTeX site, so if you provide equations and an example, people will be happy to help you, but they are less eager to dig out from the internet and guess what you might want.
– marmot
Feb 23 at 5:02
add a comment |
1
Like this tex.stackexchange.com/questions/333330/… ?
– Symbol 1
Feb 23 at 4:37
The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.
– RD1153
Feb 23 at 4:51
2
Here are additional possibilities. No, Laguerre polynomials are not too complex to be plotted, but this is a LaTeX site, so if you provide equations and an example, people will be happy to help you, but they are less eager to dig out from the internet and guess what you might want.
– marmot
Feb 23 at 5:02
1
1
Like this tex.stackexchange.com/questions/333330/… ?
– Symbol 1
Feb 23 at 4:37
Like this tex.stackexchange.com/questions/333330/… ?
– Symbol 1
Feb 23 at 4:37
The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.
– RD1153
Feb 23 at 4:51
The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.
– RD1153
Feb 23 at 4:51
2
2
Here are additional possibilities. No, Laguerre polynomials are not too complex to be plotted, but this is a LaTeX site, so if you provide equations and an example, people will be happy to help you, but they are less eager to dig out from the internet and guess what you might want.
– marmot
Feb 23 at 5:02
Here are additional possibilities. No, Laguerre polynomials are not too complex to be plotted, but this is a LaTeX site, so if you provide equations and an example, people will be happy to help you, but they are less eager to dig out from the internet and guess what you might want.
– marmot
Feb 23 at 5:02
add a comment |
1 Answer
1
active
oldest
votes
Here is an attempt to draw the most complicated one I saw on google image.
documentclass[tikz]{standalone}
pgfdeclarefunctionalshading{Laguerre-Gaussian modes}{pgfpoint{-25bp}{-25bp}}{pgfpoint{25bp}{25bp}}{}{
% x y
2 copy % x y x y
exch atan % x y theta
4 mul % x y 4theta
cos % x y cos(4theta)
dup mul % x y cos^2(4theta)
3 1 roll % cos^2(4theta) x y
dup mul exch dup mul
add sqrt % cos^2(4theta) r
20 mul % cos^2(4theta) 20r
90 add % cos^2(4theta) 20r+90
cos dup mul % cos^2(4theta) cos(20r+90)
mul % cos^2(4theta)*cos(20r+90)
sqrt
}
begin{document}
tikzpath[shading=Laguerre-Gaussian modes](-10,-10)rectangle(10,10);
end{document}

1
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
1
@marmot The shading accepts a very restricted subset of postscript. SeePDF32000_2008.pdfAppendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.
– Symbol 1
Feb 23 at 5:25
1
You can tell that it is not from an automatic tool becausecos(20r+90)should becos^2(20r+90)
– Symbol 1
Feb 23 at 5:28
1
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
1
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476269%2fplotting-laguerre-gaussian-beam-intensity-in-transverse-and-line-profile-via-cen%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is an attempt to draw the most complicated one I saw on google image.
documentclass[tikz]{standalone}
pgfdeclarefunctionalshading{Laguerre-Gaussian modes}{pgfpoint{-25bp}{-25bp}}{pgfpoint{25bp}{25bp}}{}{
% x y
2 copy % x y x y
exch atan % x y theta
4 mul % x y 4theta
cos % x y cos(4theta)
dup mul % x y cos^2(4theta)
3 1 roll % cos^2(4theta) x y
dup mul exch dup mul
add sqrt % cos^2(4theta) r
20 mul % cos^2(4theta) 20r
90 add % cos^2(4theta) 20r+90
cos dup mul % cos^2(4theta) cos(20r+90)
mul % cos^2(4theta)*cos(20r+90)
sqrt
}
begin{document}
tikzpath[shading=Laguerre-Gaussian modes](-10,-10)rectangle(10,10);
end{document}

1
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
1
@marmot The shading accepts a very restricted subset of postscript. SeePDF32000_2008.pdfAppendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.
– Symbol 1
Feb 23 at 5:25
1
You can tell that it is not from an automatic tool becausecos(20r+90)should becos^2(20r+90)
– Symbol 1
Feb 23 at 5:28
1
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
1
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
|
show 2 more comments
Here is an attempt to draw the most complicated one I saw on google image.
documentclass[tikz]{standalone}
pgfdeclarefunctionalshading{Laguerre-Gaussian modes}{pgfpoint{-25bp}{-25bp}}{pgfpoint{25bp}{25bp}}{}{
% x y
2 copy % x y x y
exch atan % x y theta
4 mul % x y 4theta
cos % x y cos(4theta)
dup mul % x y cos^2(4theta)
3 1 roll % cos^2(4theta) x y
dup mul exch dup mul
add sqrt % cos^2(4theta) r
20 mul % cos^2(4theta) 20r
90 add % cos^2(4theta) 20r+90
cos dup mul % cos^2(4theta) cos(20r+90)
mul % cos^2(4theta)*cos(20r+90)
sqrt
}
begin{document}
tikzpath[shading=Laguerre-Gaussian modes](-10,-10)rectangle(10,10);
end{document}

1
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
1
@marmot The shading accepts a very restricted subset of postscript. SeePDF32000_2008.pdfAppendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.
– Symbol 1
Feb 23 at 5:25
1
You can tell that it is not from an automatic tool becausecos(20r+90)should becos^2(20r+90)
– Symbol 1
Feb 23 at 5:28
1
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
1
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
|
show 2 more comments
Here is an attempt to draw the most complicated one I saw on google image.
documentclass[tikz]{standalone}
pgfdeclarefunctionalshading{Laguerre-Gaussian modes}{pgfpoint{-25bp}{-25bp}}{pgfpoint{25bp}{25bp}}{}{
% x y
2 copy % x y x y
exch atan % x y theta
4 mul % x y 4theta
cos % x y cos(4theta)
dup mul % x y cos^2(4theta)
3 1 roll % cos^2(4theta) x y
dup mul exch dup mul
add sqrt % cos^2(4theta) r
20 mul % cos^2(4theta) 20r
90 add % cos^2(4theta) 20r+90
cos dup mul % cos^2(4theta) cos(20r+90)
mul % cos^2(4theta)*cos(20r+90)
sqrt
}
begin{document}
tikzpath[shading=Laguerre-Gaussian modes](-10,-10)rectangle(10,10);
end{document}

Here is an attempt to draw the most complicated one I saw on google image.
documentclass[tikz]{standalone}
pgfdeclarefunctionalshading{Laguerre-Gaussian modes}{pgfpoint{-25bp}{-25bp}}{pgfpoint{25bp}{25bp}}{}{
% x y
2 copy % x y x y
exch atan % x y theta
4 mul % x y 4theta
cos % x y cos(4theta)
dup mul % x y cos^2(4theta)
3 1 roll % cos^2(4theta) x y
dup mul exch dup mul
add sqrt % cos^2(4theta) r
20 mul % cos^2(4theta) 20r
90 add % cos^2(4theta) 20r+90
cos dup mul % cos^2(4theta) cos(20r+90)
mul % cos^2(4theta)*cos(20r+90)
sqrt
}
begin{document}
tikzpath[shading=Laguerre-Gaussian modes](-10,-10)rectangle(10,10);
end{document}

answered Feb 23 at 5:16
Symbol 1Symbol 1
25.9k241125
25.9k241125
1
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
1
@marmot The shading accepts a very restricted subset of postscript. SeePDF32000_2008.pdfAppendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.
– Symbol 1
Feb 23 at 5:25
1
You can tell that it is not from an automatic tool becausecos(20r+90)should becos^2(20r+90)
– Symbol 1
Feb 23 at 5:28
1
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
1
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
|
show 2 more comments
1
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
1
@marmot The shading accepts a very restricted subset of postscript. SeePDF32000_2008.pdfAppendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.
– Symbol 1
Feb 23 at 5:25
1
You can tell that it is not from an automatic tool becausecos(20r+90)should becos^2(20r+90)
– Symbol 1
Feb 23 at 5:28
1
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
1
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
1
1
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
I would give +100 if I could. Do you know the postscript syntax, or do you use a tool to convert human readable instructions into this language?
– marmot
Feb 23 at 5:19
1
1
@marmot The shading accepts a very restricted subset of postscript. See
PDF32000_2008.pdf Appendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.– Symbol 1
Feb 23 at 5:25
@marmot The shading accepts a very restricted subset of postscript. See
PDF32000_2008.pdf Appendix B. I have some muscle memory inherited from the last time I answered the Hermite-Gaussian question.– Symbol 1
Feb 23 at 5:25
1
1
You can tell that it is not from an automatic tool because
cos(20r+90) should be cos^2(20r+90)– Symbol 1
Feb 23 at 5:28
You can tell that it is not from an automatic tool because
cos(20r+90) should be cos^2(20r+90)– Symbol 1
Feb 23 at 5:28
1
1
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
@marmot You can give +100 : start a bounty after 2 days.
– Kpym
Feb 23 at 9:21
1
1
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
@marmot you said "I would give +100 if I could". Come on! You have zillions of points to give ;)
– Kpym
Mar 24 at 21:05
|
show 2 more comments
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476269%2fplotting-laguerre-gaussian-beam-intensity-in-transverse-and-line-profile-via-cen%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Like this tex.stackexchange.com/questions/333330/… ?
– Symbol 1
Feb 23 at 4:37
The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.
– RD1153
Feb 23 at 4:51
2
Here are additional possibilities. No, Laguerre polynomials are not too complex to be plotted, but this is a LaTeX site, so if you provide equations and an example, people will be happy to help you, but they are less eager to dig out from the internet and guess what you might want.
– marmot
Feb 23 at 5:02