Plotting Laguerre Gaussian beam intensity in transverse and line profile via center?TikZ: radial shading of a...

Can you say "leftside right"?

Why is it that Bernie Sanders always called a "socialist"?

Did ancient Germans take pride in leaving the land untouched?

How do I narratively explain how in-game circumstances do not mechanically allow a PC to instantly kill an NPC?

How to deal with an underperforming subordinate?

What is this mysterious *green square* on my Content Editor?

How can I keep my gold safe from other PCs?

If I tried and failed to start my own business, how do I apply for a job without job experience?

Boss asked me to sign a resignation paper without a date on it along with my new contract

In a post apocalypse world, with no power and few survivors, would Satnav still work?

Minimum Viable Product for RTS game?

Disk space full during insert, what happens?

Can someone explain what a key is?

Two oatmeal pies a day keep the doctor away?

Book tickets knowing flight numbers

Taking an academic pseudonym?

Do the speed limit reductions due to pollution also apply to electric cars in France?

How does holding onto an active but un-used credit card affect your ability to get a loan?

Including proofs of known theorems in master's thesis

How can guns be countered by melee combat without raw-ability or exceptional explanations?

Is there any way to play D&D without a DM?

How do I avoid the "chosen hero" feeling?

Is the Maximum Use License for Everybody (MULE) a FOSS license?

Why does this quiz question say that protons and electrons do not combine to form neutrons?



Plotting Laguerre Gaussian beam intensity in transverse and line profile via center?


TikZ: radial shading of a ringBlurred tikz picture (Hermite-Gaussian modes)Rotate fading in tikzPlotting a 2D gaussian sampleAdd a gaussian curve in a specific location in a tikz diagramIsometric Tables in LaTeXAdding space to a center lineHow to center text in a ellipse and to draw circle nodes?Fill with a user specified colormap a `plot[cycle]`latex flow diagramTikz with gaussian pdfDiagrams in category theory













1















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



enter image description here










share|improve this question




















  • 1





    Like this tex.stackexchange.com/questions/333330/… ?

    – Symbol 1
    5 hours ago











  • The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.

    – RD1153
    4 hours ago






  • 1





    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
    4 hours ago
















1















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



enter image description here










share|improve this question




















  • 1





    Like this tex.stackexchange.com/questions/333330/… ?

    – Symbol 1
    5 hours ago











  • The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.

    – RD1153
    4 hours ago






  • 1





    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
    4 hours ago














1












1








1








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



enter image description here










share|improve this question
















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



enter image description here







tikz-pgf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 5 hours ago







RD1153

















asked 5 hours ago









RD1153RD1153

604




604








  • 1





    Like this tex.stackexchange.com/questions/333330/… ?

    – Symbol 1
    5 hours ago











  • The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.

    – RD1153
    4 hours ago






  • 1





    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
    4 hours ago














  • 1





    Like this tex.stackexchange.com/questions/333330/… ?

    – Symbol 1
    5 hours ago











  • The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.

    – RD1153
    4 hours ago






  • 1





    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
    4 hours ago








1




1





Like this tex.stackexchange.com/questions/333330/… ?

– Symbol 1
5 hours ago





Like this tex.stackexchange.com/questions/333330/… ?

– Symbol 1
5 hours ago













The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.

– RD1153
4 hours ago





The equation is very complex to plot. I am not sure if such functions are available on latex. It is called Laguerre polynomial.

– RD1153
4 hours ago




1




1





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
4 hours ago





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
4 hours ago










1 Answer
1






active

oldest

votes


















7














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}







share|improve this answer



















  • 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
    4 hours ago






  • 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
    4 hours ago








  • 1





    You can tell that it is not from an automatic tool because cos(20r+90) should be cos^2(20r+90)

    – Symbol 1
    4 hours ago






  • 1





    @marmot You can give +100 : start a bounty after 2 days.

    – Kpym
    28 mins ago











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
});


}
});














draft saved

draft discarded


















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









7














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}







share|improve this answer



















  • 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
    4 hours ago






  • 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
    4 hours ago








  • 1





    You can tell that it is not from an automatic tool because cos(20r+90) should be cos^2(20r+90)

    – Symbol 1
    4 hours ago






  • 1





    @marmot You can give +100 : start a bounty after 2 days.

    – Kpym
    28 mins ago
















7














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}







share|improve this answer



















  • 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
    4 hours ago






  • 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
    4 hours ago








  • 1





    You can tell that it is not from an automatic tool because cos(20r+90) should be cos^2(20r+90)

    – Symbol 1
    4 hours ago






  • 1





    @marmot You can give +100 : start a bounty after 2 days.

    – Kpym
    28 mins ago














7












7








7







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}







share|improve this answer













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}








share|improve this answer












share|improve this answer



share|improve this answer










answered 4 hours ago









Symbol 1Symbol 1

25.1k238120




25.1k238120








  • 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
    4 hours ago






  • 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
    4 hours ago








  • 1





    You can tell that it is not from an automatic tool because cos(20r+90) should be cos^2(20r+90)

    – Symbol 1
    4 hours ago






  • 1





    @marmot You can give +100 : start a bounty after 2 days.

    – Kpym
    28 mins ago














  • 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
    4 hours ago






  • 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
    4 hours ago








  • 1





    You can tell that it is not from an automatic tool because cos(20r+90) should be cos^2(20r+90)

    – Symbol 1
    4 hours ago






  • 1





    @marmot You can give +100 : start a bounty after 2 days.

    – Kpym
    28 mins ago








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
4 hours ago





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
4 hours ago




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
4 hours ago







@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
4 hours ago






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
4 hours ago





You can tell that it is not from an automatic tool because cos(20r+90) should be cos^2(20r+90)

– Symbol 1
4 hours ago




1




1





@marmot You can give +100 : start a bounty after 2 days.

– Kpym
28 mins ago





@marmot You can give +100 : start a bounty after 2 days.

– Kpym
28 mins ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...