4
$\begingroup$

I have this plot

enter image description here

And I shall label the axes as if I were in the Frame ambient that is, putting $t$ and $d\psi/dt$ on the axis but not at their top and right (like in the normal AxesLabel mode) but in the FrameLabel mode.

The problem is that I don't want any frame.

I don't know if I have been clear, but it's like to be able to write $t$ above the X axis, like in the middle, and $d\psi/dt$ at the left of the Y axis, in the middle.

Thank you!

$\endgroup$
2
$\begingroup$

Something like this?

Plot[Sqrt[x], {x, 0, 6 Pi},
 Epilog -> {
   Inset[Style["t", 12], {10, -1.5}],
   Inset[Style[Rotate["dw/dt", Pi/2], 12], {-2, 3}]},
 PlotRangePadding -> 2.5]

enter image description here

Update

Probably a better solution is:

Plot[Sqrt[x], {x, 0, 6 Pi},
 Frame -> {{True, False}, {True, False}},
 FrameLabel -> {{Style["dw/dt", 12], None}, {Style["t", 12], None}},
 PlotRangePadding -> None]

enter image description here

$\endgroup$
  • $\begingroup$ This is great! What if I wanted a Cartesian Plane without the X and Y negative parts? Shall I use something like "axesOrigin"? $\endgroup$ – Henry Jun 22 '17 at 14:18
  • 1
    $\begingroup$ See my updated answer $\endgroup$ – eldo Jun 22 '17 at 14:37
  • 1
    $\begingroup$ @HenryTuring Maybe add PlotRange -> {{0, 10}, {0, 4}} $\endgroup$ – SquareOne Jun 22 '17 at 15:52
  • 1
    $\begingroup$ or even PlotRange -> {{0, Automatic}, {0, Automatic}} $\endgroup$ – george2079 Jun 22 '17 at 16:23
  • 1
    $\begingroup$ @george2079 PlotRangePadding -> None works perfect! $\endgroup$ – Henry Jun 23 '17 at 12:53

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.