Visualizing a function on a sphere

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












What is the best way to visualize a real function on a sphere as a mountain, using spherical coordinates?



I would like to plot ArcCos[Cos[longitude] * Cos[latitude]] on a sphere in a way that I can see the sphere and the function on it like a mountain above the sea.



So the sphere should have radius 10, show the poles and the equator, and I should be able to the see both the sphere and the function above it. What is the best way? Ideally, I would be able to rotate the result with my mouse ...










share|improve this question









New contributor




Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    What is the best way to visualize a real function on a sphere as a mountain, using spherical coordinates?



    I would like to plot ArcCos[Cos[longitude] * Cos[latitude]] on a sphere in a way that I can see the sphere and the function on it like a mountain above the sea.



    So the sphere should have radius 10, show the poles and the equator, and I should be able to the see both the sphere and the function above it. What is the best way? Ideally, I would be able to rotate the result with my mouse ...










    share|improve this question









    New contributor




    Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      What is the best way to visualize a real function on a sphere as a mountain, using spherical coordinates?



      I would like to plot ArcCos[Cos[longitude] * Cos[latitude]] on a sphere in a way that I can see the sphere and the function on it like a mountain above the sea.



      So the sphere should have radius 10, show the poles and the equator, and I should be able to the see both the sphere and the function above it. What is the best way? Ideally, I would be able to rotate the result with my mouse ...










      share|improve this question









      New contributor




      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      What is the best way to visualize a real function on a sphere as a mountain, using spherical coordinates?



      I would like to plot ArcCos[Cos[longitude] * Cos[latitude]] on a sphere in a way that I can see the sphere and the function on it like a mountain above the sea.



      So the sphere should have radius 10, show the poles and the equator, and I should be able to the see both the sphere and the function above it. What is the best way? Ideally, I would be able to rotate the result with my mouse ...







      plotting






      share|improve this question









      New contributor




      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 1 hour ago









      Henrik Schumacher

      43.7k263129




      43.7k263129






      New contributor




      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      Clara

      61




      61




      New contributor




      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Clara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          I suppose it could be like this. Change the "5" to change the scale of the sphere.



          ParametricPlot3D[5 Cos[[Phi]] Cos[[Theta]], 
          Sin[[Phi]] Cos[[Theta]],
          Sin[[Theta]], (5 +
          ArcCos[Cos[[Phi]] Cos[[Theta]]]) Cos[[Phi]] Cos[[Theta]],
          Sin[[Phi]] Cos[[Theta]], Sin[[Theta]], [Phi], -Pi,
          Pi, [Theta], -Pi/2, Pi/2, PlotStyle -> Opacity[0.5],


          AxesLabel -> "x", "y", "z", ColorFunctionScaling -> False]



          enter image description here






          share|improve this answer



























            up vote
            1
            down vote













            Maybe this is waht you look for?



            ParametricPlot3D[
            (10 + ArcCos[Cos[ϕ] Cos[θ]]) Cos[ϕ] Cos[θ], Sin[ϕ] Cos[θ], Sin[θ],
            ϕ, -Pi, Pi, θ, -Pi/2, Pi/2,
            ColorFunction -> Function[x, y, z, ϕ, θ, ColorData["AlpineColors"][Sqrt[x^2 + y^2 + z^2] - 12]],
            AxesLabel -> "x", "y", "z",
            ColorFunctionScaling -> False
            ]


            enter image description here






            share|improve this answer




















              Your Answer





              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("mathjaxEditing", function ()
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              );
              );
              , "mathjax-editing");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "387"
              ;
              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',
              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
              );



              );






              Clara is a new contributor. Be nice, and check out our Code of Conduct.









               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f185224%2fvisualizing-a-function-on-a-sphere%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              I suppose it could be like this. Change the "5" to change the scale of the sphere.



              ParametricPlot3D[5 Cos[[Phi]] Cos[[Theta]], 
              Sin[[Phi]] Cos[[Theta]],
              Sin[[Theta]], (5 +
              ArcCos[Cos[[Phi]] Cos[[Theta]]]) Cos[[Phi]] Cos[[Theta]],
              Sin[[Phi]] Cos[[Theta]], Sin[[Theta]], [Phi], -Pi,
              Pi, [Theta], -Pi/2, Pi/2, PlotStyle -> Opacity[0.5],


              AxesLabel -> "x", "y", "z", ColorFunctionScaling -> False]



              enter image description here






              share|improve this answer
























                up vote
                2
                down vote













                I suppose it could be like this. Change the "5" to change the scale of the sphere.



                ParametricPlot3D[5 Cos[[Phi]] Cos[[Theta]], 
                Sin[[Phi]] Cos[[Theta]],
                Sin[[Theta]], (5 +
                ArcCos[Cos[[Phi]] Cos[[Theta]]]) Cos[[Phi]] Cos[[Theta]],
                Sin[[Phi]] Cos[[Theta]], Sin[[Theta]], [Phi], -Pi,
                Pi, [Theta], -Pi/2, Pi/2, PlotStyle -> Opacity[0.5],


                AxesLabel -> "x", "y", "z", ColorFunctionScaling -> False]



                enter image description here






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  I suppose it could be like this. Change the "5" to change the scale of the sphere.



                  ParametricPlot3D[5 Cos[[Phi]] Cos[[Theta]], 
                  Sin[[Phi]] Cos[[Theta]],
                  Sin[[Theta]], (5 +
                  ArcCos[Cos[[Phi]] Cos[[Theta]]]) Cos[[Phi]] Cos[[Theta]],
                  Sin[[Phi]] Cos[[Theta]], Sin[[Theta]], [Phi], -Pi,
                  Pi, [Theta], -Pi/2, Pi/2, PlotStyle -> Opacity[0.5],


                  AxesLabel -> "x", "y", "z", ColorFunctionScaling -> False]



                  enter image description here






                  share|improve this answer












                  I suppose it could be like this. Change the "5" to change the scale of the sphere.



                  ParametricPlot3D[5 Cos[[Phi]] Cos[[Theta]], 
                  Sin[[Phi]] Cos[[Theta]],
                  Sin[[Theta]], (5 +
                  ArcCos[Cos[[Phi]] Cos[[Theta]]]) Cos[[Phi]] Cos[[Theta]],
                  Sin[[Phi]] Cos[[Theta]], Sin[[Theta]], [Phi], -Pi,
                  Pi, [Theta], -Pi/2, Pi/2, PlotStyle -> Opacity[0.5],


                  AxesLabel -> "x", "y", "z", ColorFunctionScaling -> False]



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 1 hour ago









                  t-smart

                  1,003114




                  1,003114




















                      up vote
                      1
                      down vote













                      Maybe this is waht you look for?



                      ParametricPlot3D[
                      (10 + ArcCos[Cos[ϕ] Cos[θ]]) Cos[ϕ] Cos[θ], Sin[ϕ] Cos[θ], Sin[θ],
                      ϕ, -Pi, Pi, θ, -Pi/2, Pi/2,
                      ColorFunction -> Function[x, y, z, ϕ, θ, ColorData["AlpineColors"][Sqrt[x^2 + y^2 + z^2] - 12]],
                      AxesLabel -> "x", "y", "z",
                      ColorFunctionScaling -> False
                      ]


                      enter image description here






                      share|improve this answer
























                        up vote
                        1
                        down vote













                        Maybe this is waht you look for?



                        ParametricPlot3D[
                        (10 + ArcCos[Cos[ϕ] Cos[θ]]) Cos[ϕ] Cos[θ], Sin[ϕ] Cos[θ], Sin[θ],
                        ϕ, -Pi, Pi, θ, -Pi/2, Pi/2,
                        ColorFunction -> Function[x, y, z, ϕ, θ, ColorData["AlpineColors"][Sqrt[x^2 + y^2 + z^2] - 12]],
                        AxesLabel -> "x", "y", "z",
                        ColorFunctionScaling -> False
                        ]


                        enter image description here






                        share|improve this answer






















                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          Maybe this is waht you look for?



                          ParametricPlot3D[
                          (10 + ArcCos[Cos[ϕ] Cos[θ]]) Cos[ϕ] Cos[θ], Sin[ϕ] Cos[θ], Sin[θ],
                          ϕ, -Pi, Pi, θ, -Pi/2, Pi/2,
                          ColorFunction -> Function[x, y, z, ϕ, θ, ColorData["AlpineColors"][Sqrt[x^2 + y^2 + z^2] - 12]],
                          AxesLabel -> "x", "y", "z",
                          ColorFunctionScaling -> False
                          ]


                          enter image description here






                          share|improve this answer












                          Maybe this is waht you look for?



                          ParametricPlot3D[
                          (10 + ArcCos[Cos[ϕ] Cos[θ]]) Cos[ϕ] Cos[θ], Sin[ϕ] Cos[θ], Sin[θ],
                          ϕ, -Pi, Pi, θ, -Pi/2, Pi/2,
                          ColorFunction -> Function[x, y, z, ϕ, θ, ColorData["AlpineColors"][Sqrt[x^2 + y^2 + z^2] - 12]],
                          AxesLabel -> "x", "y", "z",
                          ColorFunctionScaling -> False
                          ]


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 1 hour ago









                          Henrik Schumacher

                          43.7k263129




                          43.7k263129




















                              Clara is a new contributor. Be nice, and check out our Code of Conduct.









                               

                              draft saved


                              draft discarded


















                              Clara is a new contributor. Be nice, and check out our Code of Conduct.












                              Clara is a new contributor. Be nice, and check out our Code of Conduct.











                              Clara is a new contributor. Be nice, and check out our Code of Conduct.













                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f185224%2fvisualizing-a-function-on-a-sphere%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              Long meetings (6-7 hours a day): Being “babysat” by supervisor

                              What does second last employer means? [closed]

                              One-line joke