Center two y-axes

I have created a plot with two different y-axis, since one of the curves goes from 0 to 3000, and the other from -10 to 10. However, the 0 of the left axis (0 to 3000) is aligned with the -10 of the right axis, both at the bottom of the plot. I want to align both 0's. What can I do?

1 Comment

dpb
dpb on 5 Oct 2017
Not much on one axes and keep the dynamic range of the two axes; the data just don't align such that that works out. If the 0:3000 axes origin is moved to the midpoint to match the RH axis location, then ylim() for that axis will be [-3000 3000] effectively halving the dynamic range of that plot.
Sometimes "the data are just what the data are"

Sign in to comment.

Answers (0)

Tags

Asked:

on 4 Oct 2017

Commented:

dpb
on 5 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!