none
need guidance to plot 2D & 3D graph using Visual C++?? RRS feed

  • Question

  • I want to plot 2D and 3D graph. I am using Visual C++ 2008 developing environment. I think its kind of drawing application so i try to go through example of drawing application(Simple drawing application). But I dont get any idea how to plot graph initially I want to start with 2D plot (lets say X vs. Y point clouds not bar chart or line chart)

    Can some one guide to some example or procedure where I can learn little bit about plotting of 2D graph???

    Thank You very much
    • Edited by Don Tan Friday, June 26, 2009 6:46 PM Fixing Thread Title bug
    Thursday, June 18, 2009 1:33 PM

Answers

  • Entire books have been written on this very subject. I suggest a visit to your local bookstore would be a good first start. If you do a search on amazon for "Graphics Programming" you will see lots of appropriate titles to research.

    Thursday, June 18, 2009 5:27 PM
  • To add to Brian's post, if you want to see some C++ source code for 2D and 3D plots, you may find CodeProject very useful and interesting.

    A couple of links you may find useful are:

    2D Graph ActiveX Control
    http://www.codeproject.com/KB/miscctrl/ntgraph_activex.aspx

    3D Graph ActiveX Control
    http://www.codeproject.com/KB/openGL/ntgraph3d_atl.aspx

    HTH,
    Giovanni
    Saturday, June 20, 2009 11:29 AM

All replies

  • Entire books have been written on this very subject. I suggest a visit to your local bookstore would be a good first start. If you do a search on amazon for "Graphics Programming" you will see lots of appropriate titles to research.

    Thursday, June 18, 2009 5:27 PM
  • To add to Brian's post, if you want to see some C++ source code for 2D and 3D plots, you may find CodeProject very useful and interesting.

    A couple of links you may find useful are:

    2D Graph ActiveX Control
    http://www.codeproject.com/KB/miscctrl/ntgraph_activex.aspx

    3D Graph ActiveX Control
    http://www.codeproject.com/KB/openGL/ntgraph3d_atl.aspx

    HTH,
    Giovanni
    Saturday, June 20, 2009 11:29 AM
  • There are a couple of books that should help:  Fundamentals of Astrodynamics, and Orbital Mechanics for Engineering Students.  Both discuss coordinate transformations in pretty good detail.  A website that I found  is http://www.physicsdaily.com//physics/Coordinate_Rotation  This website discusses 2d and 3d transformations.  Hope this helps.
    Saturday, May 28, 2011 4:14 AM
  • There http://www.codeguru.com/cpp/cpp/cpp_mfc/general/article.php/c8535/A-2D-Lite-Graph-Control-with-Multiple-Plot-Support.htm  you will find "lightweight 2D graph control". Though author says it is simple, i don't think so. Drawing was never simple in C/C++. Enjoy.

    Sergey Chepurin.

    Saturday, May 28, 2011 1:18 PM
  • Maybe only two good ones.  All the others beat around the bush. 
    Friday, July 22, 2016 2:48 PM
  • I am using NPlot.

    http://www.codeproject.com/Tips/460918/Generate-graph-using-Nplot

    Sunday, July 24, 2016 10:12 AM