[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] (no subject)
From:       Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date:       2002-11-22 8:45:17
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic