Visualization from C/C++ via Gnuplot's pipe interface -


I'm trying to gnuplot (a standard gnuplot_i. {CPP, HPP}) to use the pipe interface A real-time demonstration of constantly changing values ​​in other programs written in C ++ does work fine, but I have to see if someone has any suggestions for improvement.

In this implementation, there is a facility method for filtering a vector and 2 vectors in 2D plot. It acquired a temporary file by typing the mktemp function through a standard library call and then using it as the input of a Gnplot plot call. This generated too much temporary files and whenever the update rate on the plot is high (probably the IO is limited to one point) does not work well. I have decided to use a 'pseudo-file' in the plot call and simply send the vector directly to the pipe (it ends with a line with "E" on it). It works better, but still is not good.

What am I trying to do in relation to constantly changing the plot when changing the values? How often is it safe to update the plot with new information? Alternatively, what I am trying to achieve, what is an easy way of doing it?

@Andy Ross

I do not have "requirements". What did I mean by cleverness that perhaps I still had a more elegant approach to trying using gnuplot though elegant subjective, I think I am currently idiot especially. What did I mean safely to know if anyone knew about the update status of IO problems (such as latency, lockout of performance, etc.) at update rates.

I want to avoid using a toolkit (at least my less-list) for the following reasons.

  • I've found that they are non-root (and when they require dependencies) on different architectures that are not standard in the OS).
  • They take an additional compilation dependency for others using this software.
  • No real standard This people are mostly used for this purpose afiak (most people who work with themselves as well as usually just log type files Save and run later analysis in MATLAB).
  • I know / learn gnuplot syntax. I do not know the syntax of Superplitting APIGX
  • GNUPLot's feature set is ideal for almost all types of types that I want to be able to do with this software.

However, if you have C / C ++ plotting any specific recommendations in terms of libraries seem like a good fit to the above list I'm interested in are always tips (Warning : I've already seen it well to find them).

A Posiks pipe connection object-oriented C ++ wrapper interface around with Gnuplot.

The example file is compiled immediately and the interface code looks decent; I am trying this in my current project.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -