I'm creating a custon Plot by subclassing QwtPlotItem and QwtPlot. When i set the axis autoscale (yAxis), the values for the scale takes double of the maximum for my y value. Which function do I need to override to set the correct y axis values?

Also, which method is called to print the title on the legend? Is is drawLegendIdentifier() or is there some other method?