4
$\begingroup$

How to center the location of the z-axis label which is |f(x,t)|?

enter image description here

 f = Tan[x - t];
Plot3D[Abs[f], {x, -2, 2}, {t, -2, 2}, ViewPoint -> {3.3, -2.4, 2.1}, 
 PlotTheme -> "Business", PlotRange -> All, 
 AxesLabel -> {x, t, Rotate["|f(x,t)|", 90 Degree]}]
$\endgroup$
4
  • $\begingroup$ What about the option: AxesOrigin->{0,0,0}? $\endgroup$ Jun 19 at 10:41
  • $\begingroup$ I think I was misunderstood. I want to center the location of the name of the z- axis label which is |f(x,t)|. $\endgroup$
    – 1_student
    Jun 19 at 11:57
  • 2
    $\begingroup$ You can sort of fake it by adding spaces to the end of the label $\endgroup$
    – mikado
    Jun 19 at 13:49
  • 2
    $\begingroup$ As @mikado suggested, but use Spacer for easier control: AxesLabel -> {x, t, Rotate[Row[{"|f(x,\[ThinSpace]t)|", Spacer[100]}], 90 Degree]}} $\endgroup$
    – Bob Hanlon
    Jun 19 at 16:47

Your Answer

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

Browse other questions tagged or ask your own question.