Re: how to draw curves

On Mon, May 28, 2007 at 04:12:54PM +0800, dashikugua 126 com wrote:
> My application is using gtk to design the GUI for an Arbitrary/Function Generator. So I need to draw lots of curves, including sine wave, ramp wave, pulse wave, noise wave......and their modulation waves, e.g. the AM, FM, PM, FSK and so on.
> My problem is that I haven't found a good method to draw these waves. I have used GDK to draw sine wave on the GtkDrawingArea. But I found this method is a little complicated especially when I draw the modulation waves. Is there a good way to draw curves ?
> Any help would be appreciated.Thanks

Drawing graphs was dicussed a few days ago:

However, I'd suggest to just create a Cairo path and draw it,
I'm not sure what is the problem though, you have to
generate some set of points discretizing the curve no matter
what method you use to draw -- and once you have such set,
it should be easy to draw the curve using any method, even



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]