See this JSFiddle. How do I get the y-axis zero to align?
The simplest way is to just provide the same min/max for each axis. It would be a pretty simple to determine a good min/max based on the data before the plot call (combine the arrays, take the min/max round down/up to nearest int, would be my approach).
pretend this is code so I can link to jsFiddle
Updated fiddle.