1
$\begingroup$

When I run:

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

I get no axes showing on my plot, i.e. enter image description here

However when saving the plot as a PDF the axes are shown.

Does anyone have anyone idea on how to fix this? I would like to be able to see the axis in Mathematica notebook and the PDF file. I am using a clean install of Mathematica 11.3 on Arch Linux.

Thanks!

$\endgroup$
  • $\begingroup$ Welcome to Mathematica.SW! What is the desired outcome? Would you like to have axis in the notebook or you would not like to have axis in the PDF? $\endgroup$ – Johu Sep 9 '18 at 12:48
  • $\begingroup$ Hi! Sorry for the amibguity, I would like to have the axis in the notebook be visible, as well as the PDF file (edited my question for clarity). $\endgroup$ – Connor P. Duffin Sep 9 '18 at 13:16
  • $\begingroup$ Does Axes->True solve your problem? $\endgroup$ – ctrl Sep 9 '18 at 13:33
  • 1
    $\begingroup$ You may have changed an option setting for Plot3D. Start with a fresh kernel to reset all of the options to their default. $\endgroup$ – Bob Hanlon Sep 9 '18 at 14:30
  • 1
    $\begingroup$ @MichaelE2 I played around with rendering options and it seems to be that OpenGL was the problem. Switching to Mesa seemed to fix it. Thanks all for the help! $\endgroup$ – Connor P. Duffin Sep 10 '18 at 3:37
1
$\begingroup$

For those that run into this problem, I was having problems with OpenGL rendering. Instead of running mathematica in the shell, running mathematica -mesa seemed to fix the problem.

$\endgroup$
0
$\begingroup$

I get the axes in v. 11.3.0.0.

enter image description here

Nevertheless, you might add Boxed->True

$\endgroup$
  • $\begingroup$ I have added Boxed -> True but this didn't do anything. Thanks anyway. $\endgroup$ – Connor P. Duffin Sep 9 '18 at 13:19

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.