1

I am trying to draw a larger x-axis than my xrange. I.e. my xrange is [0:10] I plot f(x)=sin(x) But I want the x-scale to be from 0 to 15

xtics doesn't solve this problem as it will not extent beyond the set xrange.

jlinkels

1 Answer 1

1

That can simply be done using set offsets:

set xrange [0:10]
set offsets 0,5,0,0
plot sin(x)

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Never seen that command before, but that's it. Thanks very much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.