Single Scroll bar in wx.lib.intctrl.plot.PlotCanvas ?

Hello All,

I am using WxPython and plotCanvas to create a basic plot that graphs two values over time.

As data is collected, I want to constrain the X axis to the last few minutes but be able to scroll to the left to see the history. The Y axis changes very slightly so the scale is not constrained.

Originally I was trying to use the PlotCanvas.SetEnableDrag() function but it seemed a bit glitchy and I had issues. I’ve resorted to using the SetShowScrollbars() function and it does exactly what I need. A X axis scroll bar appears as the data points are collected and I’m able to scroll to see the history.

Unfortunately when I do this a scrollbar appears in the Y axis even though it is not required. I can’t figure out how to remove the Y Axis for the life of me. Any suggestions ?

Cheers,