Skip to content

alexeyshesh/plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plot

Terminal plot builder library

Features

  • You can build plots in cartesian or polar coordinates coordinates
  • You can use different colors for different plots
  • You can draw several functions in one plot

Usage

To create plot in cartesian coordinates:

RectPlot plt; 

To create plot in polar coordinates:

PolarPlot plt;

There is parameters like from_x and to_x for plots - check plot.h file.

To add function plot:

double h(double x) {
    return 3*sin(x);
}

// main:
plt.add(h, Plot::blue);

And to show plot in terminal:

cout << plt;

About

CMC MSU homework: practice on classes in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published