2
$\begingroup$

How can I customize the distance between the frame tick labels in a plot and the frame of the plot?

MWE here —nothing special:

Plot[Sin[x], {x, 0, 10}, PlotRange -> Automatic, Frame -> True, 
 Axes -> False, AspectRatio -> 1/GoldenRatio, ImageSize -> 600, 
 Frame -> True, FrameTicks -> Automatic, 
 LabelStyle -> Directive[FontFamily -> "Calibri", FontSize -> 12]]

This is the current result:

MWE

What I want is to add an extra space between the labels in the vertical axis and the vertical axis itself, and the same for the horizontal axis.

Very similar to another question here in this site, but not the same. And I have already tried things like FrameMargins without success.

$\endgroup$
4
  • 1
    $\begingroup$ I suppose you have to make custom ticks with Pane. $\endgroup$
    – Kuba
    Jul 8, 2014 at 20:21
  • 3
    $\begingroup$ related Q/As: Styling Ticks in a Plot and Vertical Alignment of Ticks $\endgroup$
    – kglr
    Jul 8, 2014 at 20:26
  • 1
    $\begingroup$ I marked this question as a duplicate because it clearly seems to be, unless I've overlooked an aspect of your question. I don't find the answers to that question highly satisfying but I am not aware of a better way or I would post it. Be sure to also read the answers to the questions kguler linked above. $\endgroup$
    – Mr.Wizard
    Jul 8, 2014 at 20:42
  • $\begingroup$ @Mr.Wizard Thank you. You are right. $\endgroup$
    – Vicent
    Jul 8, 2014 at 20:45

0

Browse other questions tagged or ask your own question.