QCustomPlot Discussion and Comments

Base line QCPBarReturn to overview


I'm looking for a way to set the vertical origin of a QCPBar plot (i.e. base line). Standard all the bars start at 0. I need however to let it start at about -50, or if possible at -infinity.
I cannot find a function which allows me to do this. Is this possible?

That's a quite special case that's not currently possible out-of-the-box. However, you can subclass QCPBars to make it behave that way. You'll only need to reimplement the draw method (take most of the code from the old draw method) and make the bars start at the lower value range coordinate (the bottom of the visible vertical plot range)