Skip to content

lucasns97/c_projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

C Projects

1. Gnuplot assistant for C++

author: Lucas Nunes Sequeira, Brasil

date: October 15, 2018

This is a open source assitent file for C++ gnuplot graphics.

Usage:

  1. import library
>> #include gnuplotassist.h
  1. declare a variable that has Graphic type:
>> Graphic points;
  1. use the prototype functions to add curves, change labels, change title etc.
>> points.title('Avaliation of market');

>> points.xlabel('time (years)');

>> points.ylabel('profit (dollars)');

>> points.addcurve('dataset', dataVec);

obs: in this case the parameters sent are a string witch contains the name of the curve
     'dataset' and a vactor of double pair, that has the (x,y) points to plot; for more
      types of headers access the gnuplotassist.h
  1. plot the graphic
>> points.plot();

About

Gnuplot assistant for C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages