Hi there,

I hope I could find help about plotting graphs. My problem is I have a device which alows me collect some data and transfer it throught USB. Then I will interpret that data using c or c++. I would like to plot such data on a window on windows enviroment or linux. The library would allow to pick a convient graph such as scatter plot or bar. Would you able to recommend any library which would be just for the problem?

Thanks to good people in advance!

Recommended Answers

My first thought is GnuPlot. But as to library? Such may depend on your choice of C. https://www.google.com/#q=visual+studio+gnuplot seems to show folk using it in Visual Studio.

Jump to Post

OK, let's extend our GnuPlot skills a little. I'm going to pull from memory here that GnuPlot outputs PNG. And yes it does. Then you only need to get that PNG into your app. There are too many ways to do that like

Jump to Post

All 8 Replies

Thanks for the reply rproffitt. It worth knowing about such library. It seems the library allows plotting into external window but it does not allow to draw into the main window. I want to draw couple graphs in the same window in different locations of the window. Also I want make a look like window like a control panel where you observe different processes and you have controls to control such processes. There is a way of achieving by using cvi labview libraries but they are not free.

I am familiar with mfc. Would that mean I would to reload the image every let say 25 times a sec to avoid flickering because i wanna plot real time data. Now i am getting the idea.

Many thanks

While it may work, your last reply added new information or requirements.

While GnuPlot will get it going, you can use that while you gen up some line charting and dot plot routines.

sure I could use general dot plot routines with MFC, that means extra work and my expectation was to get something already invented - something feels and looks nice.

Gnuplot certainly hits the mark on free, already invented with a lot of examples at http://gnuplot.sourceforge.net/demo/ HOWEVER it appears your specs were moving later in the discussion.

For me, Gnuplot would stand in till I got my own working. In the meantime it allowed me to work on the other areas of the apps.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.