Fixed a bug that produced wrong scales when plotting a set of variables with two shared axes.