Hi All, I would like to change the behaviour of the viewbox when zooming with the wheel. The behaviour of the x axis should be the same as normal, but everytime the wheel moves and the scene changes the viewable y range needs to be set to the range of the extremes (min, max) within the dataset. I am using the candlestick example to plot data. In reference to the following data. Let's say we zoom so that the x values 4-7 are visible, then y axis should be zoomed (with some padding) - low = 15, hi = 26
x = 1,2,3,*4,5,6,7*,8,9,10 lo = 10,15,11,*16,20,18,25*,26,29,33 hi = 13,21,13,*22,25,23,31*,34,36,40 I assume we would need to detect that the view has been changed via something like I a *vb.sigResized.connect* method and then sub class *vb.setYRange *I hope it's clear. Thanks in advance *Kane* -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/34c11c2f-85f7-4332-920d-bbbe3004b656%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
