Multiple y axes on single plot

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Multiple y axes on single plot

What I am trying to do is create something that looks like this,


which I have created by using the Octave pcolor and barh functions using 3
subplots with the subplot x axes scaled to look as if the figure were one
plot. However, this approach is unsatisfactory as I cannot zoom or pan
across it as I would be able to if it were actually one plot.

How can I plot one background figure using pcolor and then add multiple y
axes at different points along the x axis to plot the horizontal histograms
using barh?

For some background to this question, I am trying to create what is called a
Market Profile chart, i.e. see

Sent from: