Message Boards Message Boards

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


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.

POSTED BY: Chris Agee
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]
f[a, Axes -> True, Boxed -> False, BoxRatios -> {1, 1, 1}, 
AxesOrigin -> {0, 0, 0}], {a, 0, 1}]


POSTED BY: Alexander Trounev
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.


POSTED BY: Ian Williams
10 days ago

Group Abstract Group Abstract