QCustomPlot Discussion and Comments

image plot rangeReturn to overview

Hi, I am trying to use QCP to create an interactive 2D matrix plot qt program. I have enabled iRangeDrag and iRangeZoom, but found that the axis range can go to infinity. Does anyone know how to set a bound for the axis? After the setting, the plot will not have "white" region (the blank region that has no image plot). I tried to use setrange, but still the drag and zoom can go outside this range. Thank you very much!

BTW, I am using QCPColorMap to do the 2d matrix plot. Thank you!