Message Boards Message Boards

Use the Boxed-> False and Axes-> True options in a graphic?

Posted 6 years ago

This should be an extremely easy project to write but it has been giving me a head ache. All I want to do is rotate a line 3 dimensionally but when I run the program the graphics box won't disappear nor will the axes appear despite me calling on them to do so in the code. I don't know what I'm missing, I'm doing what the guide says to do but apparently there is a hidden step that isn't mentioned. The code is attached it's extremely brief.

Attachments:
POSTED BY: Chris Agee
2 Replies

Hi Chris,

See the attached copy of your notebook which I've modified. The main changes are highlighted. It should be self-explanatory. Hope this helps.

Ian

POSTED BY: Ian Williams

You can delete or add any number of options

f[x_, op__] := 
Graphics3D[{Red, Line[{{0, 0, 0}, {Re[(-1)^x], Im[(-1)^x], 0}}]}, op]
Manipulate[
f[a, Axes -> True, Boxed -> False, BoxRatios -> {1, 1, 1}, 
AxesOrigin -> {0, 0, 0}], {a, 0, 1}]

fig1

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

Group Abstract Group Abstract