Re: question about adaption of QwtScaleDraw1
Brought to you by:
rathmann
From: Gerard V. <ger...@gr...> - 2006-03-27 06:27:03
|
On Mon, 27 Mar 2006 06:39:13 +0200 Uwe Rathmann <Uwe...@ti...> wrote: > On Sunday 26 March 2006 23:12, Tony Willis wrote: > > > But it would look more aesthetically pleasing if I could also adjust > > the position of the major axis ticks for the second half of the > > axis so I also see 10, 20, 30 labels for the imaginary numbers. > > How can I do that? > > With Qwt 5.x you have complete control about the layout of the ticks. > Calculate your individual QwtScaleDiv and pass it with > QwtPlot::setAxisScaleDiv. > http://pyqwt.sourceforge.net/snapshot/PyQwt-20060327.tar.gz is a snapshot based on recent Qwt5 CVS (not the Qwt5 snapshots!). It requires SIP-4.4 and PyQt-3.16 which have been released this weekend. It will work with PyQt4 and Qt4, once PyQt4 has been released (within a few weeks). Note that the Qwt-5.x API and Qwt-4.2.0 API are very different. There will be a PyQwt-4.2.1 for SIP-4.4 (I am finishing the docs). This will make it possible to move on to the latest versions of SIP and PyQt with a minimum of porting. It will be possible to install PyQwt4, PyQwt5 for Qt3 and PyQwt5 for Qt4 in the same Python interpreter. Gerard |