I am using the Qwt plotting library to draw some basic type plots and charts. In the application, we also allow people to include a grid of plots that are shown in the window.

My problem is that when the plot gets too small and the user wants to see larger fonts on the axis labels, the axis labels will draw on top of each other and then they can become unreadable. (See attached picture).

overlap_tick_labe.png

Background:

[LIST=1]We are using manual scaling for the axis. I.E. We are setting them manually so that we can control what portion of the curve to draw on the screen.

Qt Code:
  1. QwtPlot::setAxisScale(_axis, _axisMin, _axisMax);
To copy to clipboard, switch view to plain text mode 
  1. We do not set the max major, medium, or minor number of ticks.


Can anyone help me figure this out. I think that I have tried everything that I can think of, but I still can't figure it out.

Thanks