Hello,
I have a QwtPlot where the x-axis can be one of two scales - in my case "channels" and "energy"- which are related by a linear transform. I want to be able to toggle the axis between these two scales. When I do this, the x-axis is realigned slightly, because the labels on the tick-marks are of slightly different sizes, and so you see a slight horizontal shift in the plot when you toggle. For example if the rightmost label under the "channels" setting is 255, and the rightmost label under the "energy" setting is 3000, they are each centred under the rightmost tickmark, and since 3000 takes up a little more space, the whole plot is shifted a little to the left.
I want to prevent this shift from happening.
Can anyone suggest how I can do this? Is it possible for me to control the location of the axis labels relative to the plot?
Thanks.
Bookmarks