Simple Graph Plotter
⠀
⠀
⠀
⠀
A library for plotting 2D graphs of mathematical equations and some curved geometric shapes using only vectors. This is not an advanced library but it has some cool features and easy-to-use if your need is simple.
This was a university project in 2018-2019 spring semester. Challenge of the project was using only vectors so that's why this library implemented using just vectors.
Figure *fig;
Color c = {.red = 80, .green = 20, .blue = 0};
fig = start_figure(10, 10);
set_thickness_resolution(fig, 0.05, 1000);
set_color(fig, c);
draw_fx(fig, your_function, -10, 10);
export_eps(fig, "filename.eps");- Capable of drawing equations with one input
- Draws ellipse, circle, polyline
- Resizable paper size
- Resolution, color and thickness settings
- Takes domain of a function
- Scaling
- Resizing
- Appending
- Exporting to SVG and EPS files
- Importing from SVG files
- Clone this repository to your project.
- Give
-Iincludeoption to your compiler. #include <RPS/libvector.h>in your file.- Compile
src/libvector.cand give object file to your linker.
You can follow comments in file test/driver.c for demo instructions.
- To run demo, type
makein the main folder where you cloned this repository. - A folder will be created named
demowhere you can see exported graphs. - Type
make cleanif you want to remove generated demo files.


