4
$\begingroup$

Is there a way make a plot's axes smaller than the PlotRange (other than drawing them manually as lines)?

$\endgroup$
1
  • 1
    $\begingroup$ ImagePadding? Not sure what you're after exactly. Can you post a sample pic? $\endgroup$
    – ktm
    Sep 1, 2017 at 0:39

1 Answer 1

9
$\begingroup$

You can use a combination of ImagePadding and PlotRangeClipping -> False:

Show[
    Plot[Sin[x], {x, 0, 10}], 
    PlotRange -> {{0, 5}, {-.5, .5}}, 
    PlotRangeClipping -> False, 
    ImagePadding -> {{Automatic, 170}, {50, 50}}
]

Mathematica graphics

$\endgroup$
0

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.