PDA

View Full Version : coordinal significant digits



nitriles
11th October 2007, 15:22
Hey,
using the moustracking:


#mouse coordinates
picker = Qwt.QwtPlotPicker(Qwt.QwtPlot.xBottom,
Qwt.QwtPlot.yLeft,
Qwt.QwtPicker.NoSelection,
Qwt.QwtPlotPicker.CrossRubberBand,
Qwt.QwtPicker.AlwaysOn,
demo.canvas())
picker.setTrackerPen(qt.QPen(qt.Qt.black))

how can i change the number of significant digits? I only want 2 places behind the decimal, %.2f ???
Thanks

jpn
27th October 2007, 15:54
What do you mean? Do you want to print them or what?