Connecting Tech Pros Worldwide Forums | Help | Site Map

drawing plots

asdf
Guest
 
Posts: n/a
#1: Sep 24 '06
I was told that it is difficult to draw plots and graphs in C++, right?
In matlab, if I have data, it's very easy to generate the plots, and I
want to know how C++ handles such output.

Steve Pope
Guest
 
Posts: n/a
#2: Sep 24 '06

re: drawing plots


asdf <likemursili@gmail.comwrote:
Quote:
>I was told that it is difficult to draw plots and graphs in C++, right?
>In matlab, if I have data, it's very easy to generate the plots, and I
>want to know how C++ handles such output.
(OT)

AFAIK It doesn't. People who do large systems projects in C++ often
keep a matlab license around just to do plotting. Other options
are to export the data into Excel and use that for plotting,
or to use something like gnuplot.

Steve
Thomas Matthews
Guest
 
Posts: n/a
#3: Sep 24 '06

re: drawing plots


asdf wrote:
Quote:
I was told that it is difficult to draw plots and graphs in C++, right?
In matlab, if I have data, it's very easy to generate the plots, and I
want to know how C++ handles such output.
>
The fundamental C++ language has no facilities for graphics.
Thus, graphs and plots have to be drawn using ASCII art,
such as periods for dots. The language also has no
facilities for fonts either.

However, there is no limitation on using platform
specific libraries for drawing graphics. These
libraries are not discussed in this newsgroup. The
libraries _may_ not be portable either.

The professional route is to find libraries that
already exist and have been tested with your
development and target platforms. Use the library
that you are most comfortable with.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
Closed Thread