# Change distance between vertical y-axis label and plot

I'm trying to do something that should be fairly straightforward: having a vertical y-axis label. My problem is, it creates a ridiculously large space between the label and the axis (exactly what I'm trying to avoid). Here's my code, inspired from answers to previous questions, and the result.

Labeled[Plot[
{p, p/(Exp[1.1]*(1-p)+p),p*Exp[1.1]/(1+p*(Exp[1.1]-1))},
{p,0,1},
PlotStyle->{Black ,Blue,Blue},
AxesOrigin -> {0, 0},
AspectRatio->1,
ImageMargins -> 0
],
{"Initial suspicion","Updated suspicion"},
{Bottom, Left},
RotateLabel->True
]


Things I tried: using a Frame (doesn't work and breaks the style of axes), add zero or negative Spacings (same result), using Rotate["updated suspicion", 90 Degree] instead of RotateLabel->True (same result). Now I'm out of ideas, even though it feels like this should be simple.

• Welcome to Mma.SE. Start by taking the tour now and learning about asking and what's on-topic. Always edit if improvable, show due diligence, give brief context, include minimal working example of your code and data in formatted form. By doing all this you help us to help you and likely you will inspire great answers. The site depends on participation, as you receive give back: vote and answer questions, keep the site useful, be kind, correct mistakes and share what you have learned. – rhermans Aug 13 '18 at 16:09

If you don't like the frame around everything, you can specify the sides. With FrameLabel, the labeling you want can be done easily:

Plot[{p, p/(Exp[1.1]*(1 - p) + p),
p*Exp[1.1]/(1 + p*(Exp[1.1] - 1))}, {p, 0, 1},
PlotStyle -> {Black, Blue, Blue}, AxesOrigin -> {0, 0},
AspectRatio -> 1, ImageMargins -> 0,
FrameLabel -> {"Initial suspicion", "Updated suspicion"},
Frame -> {{True, False}, {True, False}}]


• Your command didn't give me exactly this graphic (on Wolfram Programming Lab), the ticks were gone. Adding FrameTicks -> All solved it, and I also added PlotRangePadding -> 0 to fix the fact that the plot no longer starts at the origin. Thanks! – Ted Aug 14 '18 at 12:21

I typically do use FrameLabel for this.

Plot[{p, p/(Exp[1.1]*(1 - p) + p), p*Exp[1.1]/(1 + p*(Exp[1.1] - 1))},
{p, 0, 1}, PlotStyle -> {Black, Blue, Blue}, AxesOrigin -> {0, 0},
AspectRatio -> 1, ImageMargins -> 0,
Frame -> {True, True, False, False},
FrameLabel -> {"Initial suspicion", "Updated suspicion"}]