Message Boards Message Boards

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

GROUPS:

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
Answer
10 days ago

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

POSTED BY: Alexander Trounev
Answer
10 days ago

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
Answer
10 days ago

Group Abstract Group Abstract