Alignment of axes between multiple plots
Created by: eaburns
Original issue 124 created by eaburns on 2013-05-01T13:26:55.000Z:
I have two plots with different y axes but with the same x axis. I want to display one plot above the other. The problem is that the spacing differs slightly so the axes aren't perfectly aligned.
I don't see any way to solve this with the existing interface.
One way to solve it is to add an option to set the size of an axis to a fixed value. Basically, add a variable like this to the Axis struct:
// If nonzero, the axis will occupy a fixed width regardless of the
// content. This is useful if you need the axes to align between
// multiple plots.
FixedSize vg.Length
Then you can set the same FixedSize value for each of your plots and they will always align.
I've attached a patch which does this and solves the issue for me.