Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica many objects - where are they?

  1. Dec 11, 2009 #1
    So I want to draw a number of objects on the same picture. The object is defined parametrically:

    ParametricPlot3D[{Cos Sin[v], Sin Sin[v], Cos[v]},
    {u,0,2Pi,Pi/20},{v,0,Pi,Pi/12}, Axes->None, Boxed->False]

    gives one object.

    Then

    Do[ParametricPlot3D[
    {Cos Sin[v], Sin Sin[v], Cos[v]},
    {u,0,2 Pi, Pi/n},{v,0,Pi,Pi/n}, Axes->None, Boxed->False],
    {n,4,12,1}]


    Should give multiple objects. But running this second code doesn't give any output. That is it runs for a second ie running in title box, finishes and I have no picture. The window looks same as before I ran it.

    Any ideas why this is not displaying multiple objects?

    Thanks
     
  2. jcsd
  3. Dec 11, 2009 #2

    Dale

    Staff: Mentor

    I don't have access to verify right now, but I believe that Do has no output.
     
  4. Dec 12, 2009 #3

    Dale

    Staff: Mentor

    Yes, Do has no output. Use the following:

    Show[Table[ParametricPlot3D[...], {n,4,12,1}], PlotRange->All]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook