Let's take the following simple and funny case

S0 = ParametricPlot3D[{t*Sin[t], t*Cos[t], t}, {t, -100, 100}, 
     BoxRatios -> {1, 1, 1}, AxesLabel -> {"x", "y", "a very long label"}, ImageSize -> 550]

which gives this


We see, that the label of the z axes is printed horizontally by default, thus wasting a lot of space. In two-dimensional plots however, this can be easily fixed with the option RotateLabel -> False. Is there something similar for three-dimensional plots for rotating and printing vertically the z label?

Many thanks in advance.

  • 1
    $\begingroup$ You are aware of Rotate["a very long label", 90 Degree] right? $\endgroup$ – Öskå Nov 13 '13 at 11:23
  • $\begingroup$ @Öskå I am now! thanks. $\endgroup$ – Vaggelis_Z Nov 13 '13 at 11:26
  • $\begingroup$ "Rotate" or "Reverse"? $\endgroup$ – cormullion Nov 13 '13 at 11:39
  • 1
    $\begingroup$ @cormullion I meant Rotate. Thanks for the correction! I also updated my question. $\endgroup$ – Vaggelis_Z Nov 13 '13 at 12:23

I think using 2D rotation is simplest solution:

S0 = ParametricPlot3D[{t*Sin[t], t*Cos[t], t}, {t, -100, 100},
BoxRatios -> {1, 1, 1},AxesLabel -> {"x", "y", Rotate["a very long label", 
1.7]},ImageSize -> 550]
  • 2
    $\begingroup$ For better readability of the label you should rotate it by Pi/2. $\endgroup$ – Kardashev3 Nov 13 '13 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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