2
$\begingroup$

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

plot

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.

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

1 Answer 1

8
$\begingroup$

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]
$\endgroup$
1
  • 2
    $\begingroup$ For better readability of the label you should rotate it by Pi/2. $\endgroup$
    – Kardashev3
    Commented Nov 13, 2013 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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