Plotting a rectangular prism












12












$begingroup$


I'm creating a rectangular prism function, whose output looks like this:



rect_prism



I think that this code can be improved by optimizing the use of np.meshgrid with a Python iterator, but I can't wrap my head around it. It might also be possible to do this with fewer plotting calls, but I can't figure that out either. Ideally, I would change the line drawing to use a Line3DCollection and the areas to use a Patch3DCollection for plotting speed, but I'm still not comfortable enough with the 3D api.



from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.gca(projection='3d')
ax.set_aspect("equal")

# draw cube
def rect_prism(x_range, y_range, z_range):
# TODO: refactor this to use an iterator
xx, yy = np.meshgrid(x_range, y_range)
ax.plot_wireframe(xx, yy, z_range[0], color="r")
ax.plot_surface(xx, yy, z_range[0], color="r", alpha=0.2)
ax.plot_wireframe(xx, yy, z_range[1], color="r")
ax.plot_surface(xx, yy, z_range[1], color="r", alpha=0.2)


yy, zz = np.meshgrid(y_range, z_range)
ax.plot_wireframe(x_range[0], yy, zz, color="r")
ax.plot_surface(x_range[0], yy, zz, color="r", alpha=0.2)
ax.plot_wireframe(x_range[1], yy, zz, color="r")
ax.plot_surface(x_range[1], yy, zz, color="r", alpha=0.2)

xx, zz = np.meshgrid(x_range, z_range)
ax.plot_wireframe(xx, y_range[0], zz, color="r")
ax.plot_surface(xx, y_range[0], zz, color="r", alpha=0.2)
ax.plot_wireframe(xx, y_range[1], zz, color="r")
ax.plot_surface(xx, y_range[1], zz, color="r", alpha=0.2)


rect_prism(np.array([-1, 1]), np.array([-1, 1]), np.array([-0.5, 0.5]))
plt.show()









share|improve this question











$endgroup$

















    12












    $begingroup$


    I'm creating a rectangular prism function, whose output looks like this:



    rect_prism



    I think that this code can be improved by optimizing the use of np.meshgrid with a Python iterator, but I can't wrap my head around it. It might also be possible to do this with fewer plotting calls, but I can't figure that out either. Ideally, I would change the line drawing to use a Line3DCollection and the areas to use a Patch3DCollection for plotting speed, but I'm still not comfortable enough with the 3D api.



    from mpl_toolkits.mplot3d import Axes3D
    import matplotlib.pyplot as plt
    import numpy as np

    fig = plt.figure()
    ax = fig.gca(projection='3d')
    ax.set_aspect("equal")

    # draw cube
    def rect_prism(x_range, y_range, z_range):
    # TODO: refactor this to use an iterator
    xx, yy = np.meshgrid(x_range, y_range)
    ax.plot_wireframe(xx, yy, z_range[0], color="r")
    ax.plot_surface(xx, yy, z_range[0], color="r", alpha=0.2)
    ax.plot_wireframe(xx, yy, z_range[1], color="r")
    ax.plot_surface(xx, yy, z_range[1], color="r", alpha=0.2)


    yy, zz = np.meshgrid(y_range, z_range)
    ax.plot_wireframe(x_range[0], yy, zz, color="r")
    ax.plot_surface(x_range[0], yy, zz, color="r", alpha=0.2)
    ax.plot_wireframe(x_range[1], yy, zz, color="r")
    ax.plot_surface(x_range[1], yy, zz, color="r", alpha=0.2)

    xx, zz = np.meshgrid(x_range, z_range)
    ax.plot_wireframe(xx, y_range[0], zz, color="r")
    ax.plot_surface(xx, y_range[0], zz, color="r", alpha=0.2)
    ax.plot_wireframe(xx, y_range[1], zz, color="r")
    ax.plot_surface(xx, y_range[1], zz, color="r", alpha=0.2)


    rect_prism(np.array([-1, 1]), np.array([-1, 1]), np.array([-0.5, 0.5]))
    plt.show()









    share|improve this question











    $endgroup$















      12












      12








      12


      2



      $begingroup$


      I'm creating a rectangular prism function, whose output looks like this:



      rect_prism



      I think that this code can be improved by optimizing the use of np.meshgrid with a Python iterator, but I can't wrap my head around it. It might also be possible to do this with fewer plotting calls, but I can't figure that out either. Ideally, I would change the line drawing to use a Line3DCollection and the areas to use a Patch3DCollection for plotting speed, but I'm still not comfortable enough with the 3D api.



      from mpl_toolkits.mplot3d import Axes3D
      import matplotlib.pyplot as plt
      import numpy as np

      fig = plt.figure()
      ax = fig.gca(projection='3d')
      ax.set_aspect("equal")

      # draw cube
      def rect_prism(x_range, y_range, z_range):
      # TODO: refactor this to use an iterator
      xx, yy = np.meshgrid(x_range, y_range)
      ax.plot_wireframe(xx, yy, z_range[0], color="r")
      ax.plot_surface(xx, yy, z_range[0], color="r", alpha=0.2)
      ax.plot_wireframe(xx, yy, z_range[1], color="r")
      ax.plot_surface(xx, yy, z_range[1], color="r", alpha=0.2)


      yy, zz = np.meshgrid(y_range, z_range)
      ax.plot_wireframe(x_range[0], yy, zz, color="r")
      ax.plot_surface(x_range[0], yy, zz, color="r", alpha=0.2)
      ax.plot_wireframe(x_range[1], yy, zz, color="r")
      ax.plot_surface(x_range[1], yy, zz, color="r", alpha=0.2)

      xx, zz = np.meshgrid(x_range, z_range)
      ax.plot_wireframe(xx, y_range[0], zz, color="r")
      ax.plot_surface(xx, y_range[0], zz, color="r", alpha=0.2)
      ax.plot_wireframe(xx, y_range[1], zz, color="r")
      ax.plot_surface(xx, y_range[1], zz, color="r", alpha=0.2)


      rect_prism(np.array([-1, 1]), np.array([-1, 1]), np.array([-0.5, 0.5]))
      plt.show()









      share|improve this question











      $endgroup$




      I'm creating a rectangular prism function, whose output looks like this:



      rect_prism



      I think that this code can be improved by optimizing the use of np.meshgrid with a Python iterator, but I can't wrap my head around it. It might also be possible to do this with fewer plotting calls, but I can't figure that out either. Ideally, I would change the line drawing to use a Line3DCollection and the areas to use a Patch3DCollection for plotting speed, but I'm still not comfortable enough with the 3D api.



      from mpl_toolkits.mplot3d import Axes3D
      import matplotlib.pyplot as plt
      import numpy as np

      fig = plt.figure()
      ax = fig.gca(projection='3d')
      ax.set_aspect("equal")

      # draw cube
      def rect_prism(x_range, y_range, z_range):
      # TODO: refactor this to use an iterator
      xx, yy = np.meshgrid(x_range, y_range)
      ax.plot_wireframe(xx, yy, z_range[0], color="r")
      ax.plot_surface(xx, yy, z_range[0], color="r", alpha=0.2)
      ax.plot_wireframe(xx, yy, z_range[1], color="r")
      ax.plot_surface(xx, yy, z_range[1], color="r", alpha=0.2)


      yy, zz = np.meshgrid(y_range, z_range)
      ax.plot_wireframe(x_range[0], yy, zz, color="r")
      ax.plot_surface(x_range[0], yy, zz, color="r", alpha=0.2)
      ax.plot_wireframe(x_range[1], yy, zz, color="r")
      ax.plot_surface(x_range[1], yy, zz, color="r", alpha=0.2)

      xx, zz = np.meshgrid(x_range, z_range)
      ax.plot_wireframe(xx, y_range[0], zz, color="r")
      ax.plot_surface(xx, y_range[0], zz, color="r", alpha=0.2)
      ax.plot_wireframe(xx, y_range[1], zz, color="r")
      ax.plot_surface(xx, y_range[1], zz, color="r", alpha=0.2)


      rect_prism(np.array([-1, 1]), np.array([-1, 1]), np.array([-0.5, 0.5]))
      plt.show()






      python matplotlib






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 13 mins ago









      Stephen Rauch

      3,77061630




      3,77061630










      asked Feb 17 '17 at 10:50









      Seanny123Seanny123

      51011028




      51011028






















          1 Answer
          1






          active

          oldest

          votes


















          6












          $begingroup$

          Well, unfortunately you can't get any better than this (as far as I have read). And why would you use an iterator in this case ?



          I'd however change a bit of the structure of your code, which allows one to easily change the code if there's any need. I didn't changed too many things, just separated the logic into three different functions and added a for loop to get rid of some repetition in your code.



          As for the plotting calls, you kinda' can't change the number of calls. Those are the perks of plotting things (in Python at least).



          import matplotlib.pyplot as plt
          from mpl_toolkits.mplot3d import Axes3D
          import numpy as np

          fig = plt.figure()
          ax = fig.gca(projection='3d')
          ax.set_aspect("equal")


          def x_y_edge(x_range, y_range, z_range):
          xx, yy = np.meshgrid(x_range, y_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, yy, z_range[value], color="r")
          ax.plot_surface(xx, yy, z_range[value], color="r", alpha=0.2)


          def y_z_edge(x_range, y_range, z_range):
          yy, zz = np.meshgrid(y_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(x_range[value], yy, zz, color="r")
          ax.plot_surface(x_range[value], yy, zz, color="r", alpha=0.2)


          def x_z_edge(x_range, y_range, z_range):
          xx, zz = np.meshgrid(x_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, y_range[value], zz, color="r")
          ax.plot_surface(xx, y_range[value], zz, color="r", alpha=0.2)


          def rect_prism(x_range, y_range, z_range):
          x_y_edge(x_range, y_range, z_range)
          y_z_edge(x_range, y_range, z_range)
          x_z_edge(x_range, y_range, z_range)


          def main():
          rect_prism(np.array([-1, 1]),
          np.array([-1, 1]),
          np.array([-0.5, 0.5]))
          plt.show()

          if __name__ == '__main__':
          main()


          NOTE: I've also added if __name__ == '__main__'. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves.






          share|improve this answer









          $endgroup$













          • $begingroup$
            The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
            $endgroup$
            – Seanny123
            Feb 18 '17 at 1:52






          • 1




            $begingroup$
            This code doesn't work.
            $endgroup$
            – R zu
            Nov 12 '18 at 19:23












          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.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "196"
          };
          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%2fcodereview.stackexchange.com%2fquestions%2f155585%2fplotting-a-rectangular-prism%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









          6












          $begingroup$

          Well, unfortunately you can't get any better than this (as far as I have read). And why would you use an iterator in this case ?



          I'd however change a bit of the structure of your code, which allows one to easily change the code if there's any need. I didn't changed too many things, just separated the logic into three different functions and added a for loop to get rid of some repetition in your code.



          As for the plotting calls, you kinda' can't change the number of calls. Those are the perks of plotting things (in Python at least).



          import matplotlib.pyplot as plt
          from mpl_toolkits.mplot3d import Axes3D
          import numpy as np

          fig = plt.figure()
          ax = fig.gca(projection='3d')
          ax.set_aspect("equal")


          def x_y_edge(x_range, y_range, z_range):
          xx, yy = np.meshgrid(x_range, y_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, yy, z_range[value], color="r")
          ax.plot_surface(xx, yy, z_range[value], color="r", alpha=0.2)


          def y_z_edge(x_range, y_range, z_range):
          yy, zz = np.meshgrid(y_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(x_range[value], yy, zz, color="r")
          ax.plot_surface(x_range[value], yy, zz, color="r", alpha=0.2)


          def x_z_edge(x_range, y_range, z_range):
          xx, zz = np.meshgrid(x_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, y_range[value], zz, color="r")
          ax.plot_surface(xx, y_range[value], zz, color="r", alpha=0.2)


          def rect_prism(x_range, y_range, z_range):
          x_y_edge(x_range, y_range, z_range)
          y_z_edge(x_range, y_range, z_range)
          x_z_edge(x_range, y_range, z_range)


          def main():
          rect_prism(np.array([-1, 1]),
          np.array([-1, 1]),
          np.array([-0.5, 0.5]))
          plt.show()

          if __name__ == '__main__':
          main()


          NOTE: I've also added if __name__ == '__main__'. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves.






          share|improve this answer









          $endgroup$













          • $begingroup$
            The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
            $endgroup$
            – Seanny123
            Feb 18 '17 at 1:52






          • 1




            $begingroup$
            This code doesn't work.
            $endgroup$
            – R zu
            Nov 12 '18 at 19:23
















          6












          $begingroup$

          Well, unfortunately you can't get any better than this (as far as I have read). And why would you use an iterator in this case ?



          I'd however change a bit of the structure of your code, which allows one to easily change the code if there's any need. I didn't changed too many things, just separated the logic into three different functions and added a for loop to get rid of some repetition in your code.



          As for the plotting calls, you kinda' can't change the number of calls. Those are the perks of plotting things (in Python at least).



          import matplotlib.pyplot as plt
          from mpl_toolkits.mplot3d import Axes3D
          import numpy as np

          fig = plt.figure()
          ax = fig.gca(projection='3d')
          ax.set_aspect("equal")


          def x_y_edge(x_range, y_range, z_range):
          xx, yy = np.meshgrid(x_range, y_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, yy, z_range[value], color="r")
          ax.plot_surface(xx, yy, z_range[value], color="r", alpha=0.2)


          def y_z_edge(x_range, y_range, z_range):
          yy, zz = np.meshgrid(y_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(x_range[value], yy, zz, color="r")
          ax.plot_surface(x_range[value], yy, zz, color="r", alpha=0.2)


          def x_z_edge(x_range, y_range, z_range):
          xx, zz = np.meshgrid(x_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, y_range[value], zz, color="r")
          ax.plot_surface(xx, y_range[value], zz, color="r", alpha=0.2)


          def rect_prism(x_range, y_range, z_range):
          x_y_edge(x_range, y_range, z_range)
          y_z_edge(x_range, y_range, z_range)
          x_z_edge(x_range, y_range, z_range)


          def main():
          rect_prism(np.array([-1, 1]),
          np.array([-1, 1]),
          np.array([-0.5, 0.5]))
          plt.show()

          if __name__ == '__main__':
          main()


          NOTE: I've also added if __name__ == '__main__'. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves.






          share|improve this answer









          $endgroup$













          • $begingroup$
            The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
            $endgroup$
            – Seanny123
            Feb 18 '17 at 1:52






          • 1




            $begingroup$
            This code doesn't work.
            $endgroup$
            – R zu
            Nov 12 '18 at 19:23














          6












          6








          6





          $begingroup$

          Well, unfortunately you can't get any better than this (as far as I have read). And why would you use an iterator in this case ?



          I'd however change a bit of the structure of your code, which allows one to easily change the code if there's any need. I didn't changed too many things, just separated the logic into three different functions and added a for loop to get rid of some repetition in your code.



          As for the plotting calls, you kinda' can't change the number of calls. Those are the perks of plotting things (in Python at least).



          import matplotlib.pyplot as plt
          from mpl_toolkits.mplot3d import Axes3D
          import numpy as np

          fig = plt.figure()
          ax = fig.gca(projection='3d')
          ax.set_aspect("equal")


          def x_y_edge(x_range, y_range, z_range):
          xx, yy = np.meshgrid(x_range, y_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, yy, z_range[value], color="r")
          ax.plot_surface(xx, yy, z_range[value], color="r", alpha=0.2)


          def y_z_edge(x_range, y_range, z_range):
          yy, zz = np.meshgrid(y_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(x_range[value], yy, zz, color="r")
          ax.plot_surface(x_range[value], yy, zz, color="r", alpha=0.2)


          def x_z_edge(x_range, y_range, z_range):
          xx, zz = np.meshgrid(x_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, y_range[value], zz, color="r")
          ax.plot_surface(xx, y_range[value], zz, color="r", alpha=0.2)


          def rect_prism(x_range, y_range, z_range):
          x_y_edge(x_range, y_range, z_range)
          y_z_edge(x_range, y_range, z_range)
          x_z_edge(x_range, y_range, z_range)


          def main():
          rect_prism(np.array([-1, 1]),
          np.array([-1, 1]),
          np.array([-0.5, 0.5]))
          plt.show()

          if __name__ == '__main__':
          main()


          NOTE: I've also added if __name__ == '__main__'. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves.






          share|improve this answer









          $endgroup$



          Well, unfortunately you can't get any better than this (as far as I have read). And why would you use an iterator in this case ?



          I'd however change a bit of the structure of your code, which allows one to easily change the code if there's any need. I didn't changed too many things, just separated the logic into three different functions and added a for loop to get rid of some repetition in your code.



          As for the plotting calls, you kinda' can't change the number of calls. Those are the perks of plotting things (in Python at least).



          import matplotlib.pyplot as plt
          from mpl_toolkits.mplot3d import Axes3D
          import numpy as np

          fig = plt.figure()
          ax = fig.gca(projection='3d')
          ax.set_aspect("equal")


          def x_y_edge(x_range, y_range, z_range):
          xx, yy = np.meshgrid(x_range, y_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, yy, z_range[value], color="r")
          ax.plot_surface(xx, yy, z_range[value], color="r", alpha=0.2)


          def y_z_edge(x_range, y_range, z_range):
          yy, zz = np.meshgrid(y_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(x_range[value], yy, zz, color="r")
          ax.plot_surface(x_range[value], yy, zz, color="r", alpha=0.2)


          def x_z_edge(x_range, y_range, z_range):
          xx, zz = np.meshgrid(x_range, z_range)

          for value in [0, 1]:
          ax.plot_wireframe(xx, y_range[value], zz, color="r")
          ax.plot_surface(xx, y_range[value], zz, color="r", alpha=0.2)


          def rect_prism(x_range, y_range, z_range):
          x_y_edge(x_range, y_range, z_range)
          y_z_edge(x_range, y_range, z_range)
          x_z_edge(x_range, y_range, z_range)


          def main():
          rect_prism(np.array([-1, 1]),
          np.array([-1, 1]),
          np.array([-0.5, 0.5]))
          plt.show()

          if __name__ == '__main__':
          main()


          NOTE: I've also added if __name__ == '__main__'. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 17 '17 at 15:22









          яүυкяүυк

          7,22122056




          7,22122056












          • $begingroup$
            The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
            $endgroup$
            – Seanny123
            Feb 18 '17 at 1:52






          • 1




            $begingroup$
            This code doesn't work.
            $endgroup$
            – R zu
            Nov 12 '18 at 19:23


















          • $begingroup$
            The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
            $endgroup$
            – Seanny123
            Feb 18 '17 at 1:52






          • 1




            $begingroup$
            This code doesn't work.
            $endgroup$
            – R zu
            Nov 12 '18 at 19:23
















          $begingroup$
          The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
          $endgroup$
          – Seanny123
          Feb 18 '17 at 1:52




          $begingroup$
          The reason I want iterators is because I figure it would be the first step to putting all the plotting calls into collections. I forgot to put it in the question, but I've edited it now. Not that I expect you to satisfy these new requirements, but just to explain myself.
          $endgroup$
          – Seanny123
          Feb 18 '17 at 1:52




          1




          1




          $begingroup$
          This code doesn't work.
          $endgroup$
          – R zu
          Nov 12 '18 at 19:23




          $begingroup$
          This code doesn't work.
          $endgroup$
          – R zu
          Nov 12 '18 at 19:23


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Code Review 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.


          Use MathJax to format equations. MathJax reference.


          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%2fcodereview.stackexchange.com%2fquestions%2f155585%2fplotting-a-rectangular-prism%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

          Costa Masnaga

          Fotorealismo

          Create new schema in PostgreSQL using DBeaver