GnuplotCSharp icon indicating copy to clipboard operation
GnuplotCSharp copied to clipboard

Can the graph be inbuilt in the Winform application?

Open sim273 opened this issue 7 years ago • 2 comments

Hello people: I want the graph that I got through GnuPlot.cs to get embedded in a Winform application,is there any way to achieve it?

sim273 avatar May 24 '18 06:05 sim273

I too am interested in this. To define the task better, I wish to add a function to the GnuPlot class which returns the graph as a bitmap (rather than launching an interactive window). There are a few ways this could be done. Usage could be something like:

GnuPlot.StartBitmap();
GnuPlot.Plot("sin(x)");
pictureBox1.Image = GnuPlot.GetBitmap();

swharden avatar Sep 29 '18 19:09 swharden

@swharden This would be interesting if you get it working. At the time, I did not know of any way. I have a feeling there is some way to kind of output the sequence of commands to a command-line and have it generate an image which is then read into to the program.

AwokeKnowing avatar Oct 22 '18 18:10 AwokeKnowing