Skip to content

C++ class CTikz to create TikZ file which can be used for LaTeX. It is suitable to create charts out of a data array or data vector from C++ via this C++2Tikz class.

License

Notifications You must be signed in to change notification settings

mchlbrnhrd/CTikz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTikz

When writing thesis or paper in LaTeX and you have done data analysis in C++ or don't like the default Matlab graphics then CTikz can be used to create TikZ files for your LaTeX document. This C++ class CTikz creates TikZ files and as preview a pdf of the graphic. It is suitable to create charts out of a C data array (double x[10]) or data vector (std::vector<double> x) from C++.

Example picture

example picture

Code

CTikz tikz;
const int N = 100;
double x[N];
double y[N];
// ...
tikz.addData(x, y, N);
tikz.createTikzPdf("example.tikz");

Complete examples in main.cpp.

How to start

  1. clone project and change directory
> git clone https://github.com/mchlbrnhrd/CTikz
> cd CTikz
  1. compile
> make
  1. execute test code:
> cd bin
> ./CTikzApp

Four example tikz files will be created with corresponding pdf files.

About

C++ class CTikz to create TikZ file which can be used for LaTeX. It is suitable to create charts out of a data array or data vector from C++ via this C++2Tikz class.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published