Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.7K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[Solved] FaceGridsStyle control over spacing?

Posted 5 years ago

I have the following plot:

Plot3D[x^2 + y^2, {x, -1, 1}, {y, -1, 1},
 FaceGrids -> {{0, 0, -1}}]

On my computer, Mathematica draws a line each half unit in the x and y directions.

What argument should be passed to FaceGridsStyle option so that the lines would be denser?

Say, every 0.2 units in the x direction and a line every 0.6 units in the y direction.

Couldn't find an answer in the documentation.

POSTED BY: Ehud Behar
2 Replies
Posted 5 years ago

Hi Ehud,

You can use the {{face}, {xgrid, ygrid}} form for specifying positions

faceGridPositions = {{{0, 0, -1}, {Range[-1, 1, 0.2], Range[-1, 1, 0.6]}}};

Plot3D[x^2 + y^2, {x, -1, 1}, {y, -1, 1},
 FaceGrids -> faceGridPositions,
 FaceGridsStyle -> Directive[Thick, Blue]]

enter image description here

POSTED BY: Rohit Namjoshi
Posted 5 years ago

Thanks a lot!

POSTED BY: Ehud Behar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard