Thread: Is it possible to plot curves for calculation in c/c++?

  1. #1
    Registered User
    Join Date
    Aug 2016
    Posts
    10

    Is it possible to plot curves for calculation in c/c++?

    Hi there,

    Can i do this task for simple equations (like y=f(x)) or more difficult ones using only the commands and fucntions of c/c++ without any extra tools or library? i am using code::block.

    Thanks in advance.

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    neither c nor c++ are the languages you want for this if you don't want to use extra tools or libraries.

  3. #3
    Registered User
    Join Date
    Aug 2016
    Posts
    10
    really? too bad

    so what is the easiest solution then?

  4. #4
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Quote Originally Posted by ferik View Post
    really? too bad

    so what is the easiest solution then?
    I use Python for visualisation all the time.

    Python + the matplotlib library is a fairly standard approach that j use all the time.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by ferik View Post
    really? too bad

    so what is the easiest solution then?
    Matlab (Commercial and cost a lot) or the free software in the same area like SciLab or Octave.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  6. #6
    Registered User
    Join Date
    Jun 2015
    Posts
    1,640
    gnuplot is pretty great. gnuplot homepage

  7. #7
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    If you have a spreadsheet program, the C / C++ program can create a file of X,Y values, and then the spreadsheet can import and plot the values.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Are B-splines composed of Bezier curves?
    By thetinman in forum Game Programming
    Replies: 4
    Last Post: 01-28-2009, 11:21 AM
  2. Bezier Curves where y = f(x)
    By thetinman in forum Game Programming
    Replies: 11
    Last Post: 12-27-2008, 10:21 AM
  3. What's the purpose of Bezier Curves?
    By thetinman in forum Game Programming
    Replies: 5
    Last Post: 10-06-2008, 08:38 PM
  4. Graphing a sine/cosine/tan curves in C???
    By Brokn in forum C Programming
    Replies: 3
    Last Post: 12-13-2005, 03:36 AM
  5. bezier curves
    By linuxdude in forum Game Programming
    Replies: 9
    Last Post: 12-23-2004, 02:53 AM

Tags for this Thread