Restricting Domain of 3D Plotplotting two time series with boundsSplitting y domain in 3D pgfplotsHow do i...

Why did Luke use his left hand to shoot?

Is there a way to not have to poll the UART of an AVR?

When obtaining gender reassignment/plastic surgery overseas, is an emergency travel document required to return home?

Categorical Unification of Jordan Holder Theorems

Crack the bank account's password!

Why is the "Domain users" group missing from this PowerShell AD query?

Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?

Possible issue with my W4 and tax return

Why avoid shared user accounts?

Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?

Does diversity provide anything that meritocracy does not?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Stuck on a Geometry Puzzle

Does the ditching switch allow an A320 to float indefinitely?

Microtypography protrusion with Polish quotation marks

Why do neural networks need so many training examples to perform?

Does an Eldritch Knight's Weapon Bond protect him from losing his weapon to a Telekinesis spell?

If angels and devils are the same species, why would their mortal offspring appear physically different?

How vim overwrites readonly mode?

Non-Cancer terminal illness that can affect young (age 10-13) girls?

How to politely refuse in-office gym instructor for steroids and protein

How can I play a serial killer in a party of good PCs?

Translation needed for 130 years old church document

Current across a wire with zero potential difference



Restricting Domain of 3D Plot


plotting two time series with boundsSplitting y domain in 3D pgfplotsHow do i get the x axis on top but keep a line on the bottom3d plot of a surface with nonrectangular domainRestricting “every nth point” to a domainrestricting variables in pgf plotsrestrict y to domain “cuts” up plottikz 3d graph with circular domainChanging the axis xmax/domain in a step plotPGFplots: Plot end arrows without specifying domain













0















I have this 3D plot:



enter image description here



I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



Here is a MWE:



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
]
{12*exp(-(4*x+3*y))};

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

%line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

end{axis}
end{tikzpicture}

end{document}


I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?









share



























    0















    I have this 3D plot:



    enter image description here



    I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



    Here is a MWE:



    PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
    documentclass[a4paper, 12pt]{article}
    usepackage{pgfplots}
    usepgfplotslibrary{colormaps,fillbetween}

    begin{document}

    begin{tikzpicture}

    begin{axis}[
    zmax=15,
    zmin=0,
    view = {45}{45},
    grid=minor,
    colormap={mycol}{color=(Tan), color=(Tan)},
    xlabel = $s$,
    ylabel = $h$,
    zlabel = {$f(s,h)$},
    ticks = none,
    ]

    addplot3[
    surf,
    samples=30,
    domain=0:1.5,
    %y domain = 0:x, %does not work
    opacity=0.5,
    ]
    {12*exp(-(4*x+3*y))};

    %highlighting dark part of bottom
    filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

    %line across bottom
    draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

    %line going across graph
    addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

    end{axis}
    end{tikzpicture}

    end{document}


    I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?









    share

























      0












      0








      0








      I have this 3D plot:



      enter image description here



      I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



      Here is a MWE:



      PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
      documentclass[a4paper, 12pt]{article}
      usepackage{pgfplots}
      usepgfplotslibrary{colormaps,fillbetween}

      begin{document}

      begin{tikzpicture}

      begin{axis}[
      zmax=15,
      zmin=0,
      view = {45}{45},
      grid=minor,
      colormap={mycol}{color=(Tan), color=(Tan)},
      xlabel = $s$,
      ylabel = $h$,
      zlabel = {$f(s,h)$},
      ticks = none,
      ]

      addplot3[
      surf,
      samples=30,
      domain=0:1.5,
      %y domain = 0:x, %does not work
      opacity=0.5,
      ]
      {12*exp(-(4*x+3*y))};

      %highlighting dark part of bottom
      filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

      %line across bottom
      draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

      %line going across graph
      addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

      end{axis}
      end{tikzpicture}

      end{document}


      I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?









      share














      I have this 3D plot:



      enter image description here



      I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



      Here is a MWE:



      PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
      documentclass[a4paper, 12pt]{article}
      usepackage{pgfplots}
      usepgfplotslibrary{colormaps,fillbetween}

      begin{document}

      begin{tikzpicture}

      begin{axis}[
      zmax=15,
      zmin=0,
      view = {45}{45},
      grid=minor,
      colormap={mycol}{color=(Tan), color=(Tan)},
      xlabel = $s$,
      ylabel = $h$,
      zlabel = {$f(s,h)$},
      ticks = none,
      ]

      addplot3[
      surf,
      samples=30,
      domain=0:1.5,
      %y domain = 0:x, %does not work
      opacity=0.5,
      ]
      {12*exp(-(4*x+3*y))};

      %highlighting dark part of bottom
      filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

      %line across bottom
      draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

      %line going across graph
      addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

      end{axis}
      end{tikzpicture}

      end{document}


      I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?







      tikz-pgf pgfplots 3d





      share












      share










      share



      share










      asked 2 mins ago









      Aiden KennyAiden Kenny

      3947




      3947






















          0






          active

          oldest

          votes











          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%2f476729%2frestricting-domain-of-3d-plot%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f476729%2frestricting-domain-of-3d-plot%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...