[PyKDE] (no subject)

Phil Thompson phil at river-bank.demon.co.uk
Fri Nov 22 09:46:01 GMT 2002


On Friday 22 November 2002 12:59 am, star gazer wrote:
> I am wondering if this is possible in pyqt.  I would
> like to create a line graph with the vertical axis 0 -
> 5 and the horizontal axis 0 - 500. I would then like
> to input a text file with 10 values pairs in it.  the
> X values are 0,50,100,150,200 etc (every 50) the Y
> values gradualy increase from 1 - 5 forming a linear
> line.  What I would like to be able to do is create
> the graph in pyqt and then "grab" the data points and
> move then in the Y axis only and use bspline curves at
> those points to reshape the line.  Then I would line
> to be able to create a new textfile with the refined
> data from every iteration on the x axis ie.
> 0,1,2,3,4,5,6,7,8,9,10,11 etc. The file would be 500
> lines long.
> I was wondering if this would be possible in pyqt.  I
> am using version 3.1 of Qt and the snapshot version of
> pyqt that compiles against 3.1.
>
> The key thing is the ability the interactivly move the
> original points and create a smooth curve and then
> generate the individual point data.
>
> Any kind of help would be greatly appreciated

Have a look at the canvas.py example included with PyQt and particularly the 
"Create Mesh" option of the "Edit" menu.

Also look at PyQwt.

Phil




More information about the PyQt mailing list