-1
$\begingroup$

What I am doing:

ParametricPlot3D[{Cos[z/2]^6 * Cos[t],Cos[z/2]^6 *  Sin[t], z}, {t,-Pi, Pi},{z,-Pi,Pi}]

What I get:

enter image description here

What I want: what I get, but without the clipping that creates the hole.

$\endgroup$
11
  • $\begingroup$ Add PlotRange -> All to the end $\endgroup$ Commented Jul 28, 2015 at 11:31
  • 1
    $\begingroup$ As I see it, your question was in no way specific to the use of the cloud, so I have removed it. $\endgroup$ Commented Jul 29, 2015 at 13:18
  • 2
    $\begingroup$ I think it's safe to say that I have some experience with using ParametricPlot3D[], considering that I was already using it back when it was a function that had to be loaded through a package. And yes, you are not the first special snowflake to be sideswiped by Mathematica trying to guess the "best features" of your plot and then clipping the plot range accordingly. $\endgroup$ Commented Jul 29, 2015 at 14:58
  • 1
    $\begingroup$ Further discussion of "off-topic" nature is at meta.mathematica.stackexchange.com/questions/1619/… . $\endgroup$ Commented Jul 29, 2015 at 15:53
  • 2
    $\begingroup$ @Chris Do you have any evidence that it does not work on non-cloud platforms? $\endgroup$
    – Michael E2
    Commented Jul 30, 2015 at 1:50

1 Answer 1

2
$\begingroup$

Supply the option PlotRange -> All:

ParametricPlot3D[{Cos[z/2]^6*Cos[t], Cos[z/2]^6*Sin[t], z}, 
                 {t, -Pi, Pi}, {z, -Pi, Pi}, 
                 PlotRange -> All
]

Mathematica graphics

$\endgroup$
6
  • $\begingroup$ Thanks. That works fine. Now I see the default behaviour of this function is defined as "outlying points are dropped". Goodness know why anyone thought that was a good idea! :) Likewise to the fact that it is asymmetric w.r.t. x and y. $\endgroup$
    – ChrisJJ
    Commented Jul 28, 2015 at 15:01
  • $\begingroup$ The defaults are to display axes scaled to the golden ratio, I believe. Similarly, "drop outlying points" behaviour is decidedly wanted in some cases, like if an outlier would make all other features invisible due to scale. Good heuristics are extremely hard to find. $\endgroup$ Commented Jul 29, 2015 at 15:56
  • $\begingroup$ Patrick, that's an interesting rep number that you have… :) $\endgroup$ Commented Jul 29, 2015 at 15:56
  • 2
    $\begingroup$ Now you mention it, I've been feeling a bit evil recently. Might just go and indulge in some brimstone. $\endgroup$ Commented Jul 29, 2015 at 15:56
  • 2
    $\begingroup$ The "golden ratio" scaling is for Plot[]/ListPlot[]. ParametricPlot3D[] has the BoxRatios -> Automatic setting by default. $\endgroup$ Commented Jul 29, 2015 at 15:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.