7

I'd like to align a FrameLabel right.

For example: Plot[L[z], {z, 0.32, 1}, PlotRange -> {All, All}, Frame -> True, GridLines -> Automatic, LabelStyle -> {Black, 19}, Axes -> False, FrameLabel -> {"Distance (nm)", "Potencial (Nm)"}]

enter image description here

In this case the plot will have FrameLabels aligned to the center.

A. Vieira
  • 503
  • 3
  • 10

2 Answers2

7

You could use Labeled outside of the Graphics object. For example:

Labeled[
    Graphics[{}, Frame->True], 
    {"vertical label", "horizontal label"},
    {{Left, Top}, {Bottom, Right}},
    RotateLabel -> True
]

enter image description here

Carl Woll
  • 130,679
  • 6
  • 243
  • 355
  • Unrelated question: I was taken by the font in your labels; it looks very pleasant to me. A quick online font-matching brings up Ubuntu Mono as the best match. Is that what yours is? (+1, btw). – MarcoB Aug 04 '17 at 17:44
  • 1
    @MarcoB I think it's just the default font in 11.1, "Source Sans Pro". – Carl Woll Aug 04 '17 at 19:10
5
Plot[Exp[z], {z, 0.32, 1},
 PlotRange -> {All, All},
 Frame -> True,
 GridLines -> Automatic,
 LabelStyle -> {Black, 19},
 Axes -> False,
 FrameLabel -> {
   Row[{Spacer@180, "Distance (nm)"}],
   Row[{Spacer@50, "Potencial  (Nm)"}]}]

enter image description here

eldo
  • 67,911
  • 5
  • 60
  • 168