473,394 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

drawing plots

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.

Sep 24 '06 #1
2 2476
asdf <li*********@gmail.comwrote:
>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
Sep 24 '06 #2
asdf wrote:
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
Sep 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andy Salnikov | last post by:
Hi all, does anybody knows any plotting library which can do nice timeline plots? Python is preffered, but not strictly necessary. Standalone utility might also be OK if one can feed some data...
0
by: Greg Weeks | last post by:
I'm looking for a Python binding of jpgraph that is more up-to-date and complete than that from metagram.webreply.com, which is documented as not supporting Gantt charts. I, alas, need Gantt...
9
by: Dr. Colombes | last post by:
What is the easiest way to generate some plots and graphs in Python ? Specifically interested in simple histograms and scatter plots with circles and regression lines. Thanks for your...
8
by: Stefan Burger | last post by:
Those of you who are in need for drawing vector lines might be interested in the following code. DrawLine( x1, y1, x2, y2, color ) draws a vector line from any Point x1,y1 to any Point x2,y2 in...
1
by: abhiM | last post by:
Is there a way to use the MFC Application wizard from VC++ 2003 to assign area for Matlab plots(say in a dialog, as you would for a text box) and then generate the Matlab plots in that area? ,...
8
by: Ghirai | last post by:
Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any...
1
by: Giovanni Dicanio | last post by:
Hi, do you know any WPF component for 2D line plots? I would like something to plot 2D data using lines, like Matlab 'plot' command (example of Matlab plot:...
7
by: serave | last post by:
Hi i'm new in this group. I need some help with php. I need to draw any mathematical function i get through a form? Please help me
3
by: Giovanni Dicanio | last post by:
Hi all, does anyone know about free C# 2D plotting libraries capable of drawing semi-log plots and Bode diagrams? (Seems like ZedGraph can't do that...) Thanks in advance, Giovanni
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.