1
$\begingroup$

I have a simple 3D plotting question, but having difficulty finding the option which might have changed from a previous version as I have recently updated to Mathematica 13.1. When using the Plot3D function, how do you produce the inner grid-lines as shown in the attached image on the right? Thanks for any assistance. 3D plot with and without grid-lines 3DPlot Function

$\endgroup$
5
  • 1
    $\begingroup$ The code shown in your screen shot does not produce a plot of anything. Please post working or at least copyable code so we can all help you. I think you have to at least provide a definition of your function, var[x,y,n] $\endgroup$
    – Jagra
    Aug 15 at 23:51
  • 1
    $\begingroup$ Use the option FaceGrids $\endgroup$
    – Bob Hanlon
    Aug 15 at 23:56
  • $\begingroup$ @BobHanlon Thanks good sir but FaceGrids has a different effect, like caging your 3DPlot. POW 3D plots not desired. $\endgroup$
    – John Doe
    Aug 16 at 0:03
  • 1
    $\begingroup$ You don't have to use FaceGrids -> All, you can specify which faces have gridlines. $\endgroup$
    – Bob Hanlon
    Aug 16 at 4:28
  • $\begingroup$ @BobHanlon Did not know that, many thanks. $\endgroup$
    – John Doe
    Aug 16 at 6:45

2 Answers 2

5
$\begingroup$
Plot3D[x*y, {x, -5, 5}, {y, -5, 5}, PlotTheme -> "Detailed"]

enter image description here

$\endgroup$
1
  • $\begingroup$ I knew it was something simple I forgot! $\endgroup$
    – John Doe
    Aug 16 at 0:02
6
$\begingroup$

Using FaceGrids

Plot3D[x*y, {x, -5, 5}, {y, -5, 5}, 
 FaceGrids -> {
   {{0, 0, -1}, {{-6, -4, -2, 0, 2, 4, 6}, {-6, -4, -2, 0, 2, 4, 
      6}}},
   {{0, 1, 
     0}, {{-6, -4, -2, 0, 2, 4, 6}, {-30, -20, -10, 0, 10, 20, 30}}},
   {{-1, 0, 
     0}, {{-6, -4, -2, 0, 2, 4, 6}, {-30, -20, -10, 0, 10, 20, 30}}}}]

enter image description here

$\endgroup$

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