I frequently produce chart outputs with two to three proc sgplot charts to a single page (landscape orientation, charts stacked one on top of the other). These charts are typically intraday stock (trade and quote) price/volume data, made for many tickers/dates. I can make the charts/macro calls very quickly, but often the most time consuming part of producing the charts is reviewing each chart individually and making manual adjustments in the calls to align the y-axes (i.e., adjusting the formatting of the y-axis labels so the plot areas and x-axis gridlines of both charts stay aligned). All charts are plotted with time on the x-axis, but the y-axis is some price/volume variable, and as you can likely imagine with stocks, volume can vary wildly across stocks and even across the same stock. Is there a way to automate this alignment within the charting macro to avoid doing it manually?
... View more