|
From: Petr M. <mi...@ph...> - 2004-10-25 10:05:42
|
> I have been working on a KDE interface to Octave, when I found that there > was no nice KDE wrapper around gnuplot. So I started one. > > I am mostly looking for people who are interested in helping me that are > familiar with gnuplot. I only really know how to do pretty simple things > with it, but I did most of the dirty work already, so anyone with minor > C++ knowledge, and a good gnuplot background would work. Look to gnuplot web page. There are some front-ends / wrappers lists. It would be useful to use an already existing API rather than developing your own. BTW, you could not use one of the existings, and add a possibity to draw into a KDE widget? Or even a "KE Widget" terminal for gnuplot? > The following C++ code generates the graphic at > http://www.geiseri.com/kdevelop/gnuplot.png > > KGNUPlotWidget *wid = new KGNUPlotWidget(); not GNUPlot, see FAQ --> rather KGnuplot > LineStyle line(2); rather prefixed: kgnuplotLineStyle > wid->setXLabel("Test X Label"); > wid->setYLabel("Test Y Label"); > wid->setFormats(KGNUPlotWidget::X, "%g"); > wid->setFormats(KGNUPlotWidget::Y, "%.2f"); That looks like reimplementation of gnuplot structure into you KDE. What about just the similar thing as Octave does: wid->raw("set mxtics 5"); raw would do printf()+fflush() --- PM |