Please look at

Show[DiscretizeGraphics[Graphics3D[{Cone[]}]], Axes -> True, Boxed -> True]

enter image description here

Well, there are some Ticks, but others are missing or (on the Z-axis) cut-off.

Now it becomes even worse:

dg = DiscretizeGraphics[Normal @ Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]] // Quiet

Show[dg, Axes -> True, Boxed -> True]

enter image description here

The Ticks are completely missing.

Is this a bug or do I overlook something?


Thanks to hieron's answer:

 Axes -> True,
 Boxed -> True,
 SphericalRegion -> True,
 PlotRange -> {{-3.2, 3.2}, {-2.4, 2.4}, {-2., 2.}}]

enter image description here

However, we don't need this work-around with

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]

enter image description here

  • $\begingroup$ Do you mean that the numbers are cut-off? If so yes, I see the same. $\endgroup$ – RunnyKine Aug 16 '14 at 19:40
  • $\begingroup$ Related?: (57042) $\endgroup$ – Mr.Wizard Aug 16 '14 at 21:10
  • 1
    $\begingroup$ I think you've found a bug in the way your discretized graphics are being scaled by Show. $\endgroup$ – m_goldberg Aug 17 '14 at 2:52
  • 1
    $\begingroup$ BTW, you can extract the graphics you want to discrete without resorted to Quit with dg = Cases[Normal @ Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}], GraphicsGroup[__], ∞][[1]] // DiscretizeGraphics $\endgroup$ – m_goldberg Aug 17 '14 at 2:56
  • $\begingroup$ My description of progress with Mathematica's graphics capabilities, and the resulting user experience, is captured metaphorically by this Youtube movie: Das Bild hing schief. Translation of the title (and the punch line at the end): "The picture was lopsided." Sorry couldn't resist since eldo probably knows this sketch. $\endgroup$ – Jens Aug 17 '14 at 21:23

This isn't a bug, it happened already in recent MMA versions. In such cases you can increase the value for option PlotRangePadding Sorry, I can't test it, because I have actually MMA7. Probably setting SphericalRegion->True or ImagePadding will help also

| improve this answer | |
  • 1
    $\begingroup$ I had tried PlotRangePadding but it makes things even worse with DiscretizeGraphics. $\endgroup$ – eldo Aug 16 '14 at 19:52
  • $\begingroup$ Did you set PlotRange too? $\endgroup$ – hieron Aug 16 '14 at 19:57
  • 2
    $\begingroup$ I disagree with your assessment of eldo's problem not being a bug. I find that Show, given discretized graphics, is not scaling the image properly after rotation. During rotation, the graphics look fine, but as soon as I release the mouse button, bad scaling takes place. $\endgroup$ – m_goldberg Aug 17 '14 at 2:50
  • $\begingroup$ @m_goldberg and the other two people who voted for his comment: then why did you not down-vote this answer? That is what the down-vote is for after all; not spite or poor English, but an incorrect answer. Use it accordingly. $\endgroup$ – Mr.Wizard Aug 17 '14 at 5:06
  • $\begingroup$ @Mr.Wizard. I did not down vote because I am not 100% confident of my position. It's only my empirical observation, not the result of analysis. I thought a comment was appropriate, but nothing more. People are often very upset by a down vote. Also, I understand why you upbraid me, but why the up-voters? I would say they think the answer is correct. $\endgroup$ – m_goldberg Aug 17 '14 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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