Introducing Graphy - a simple, open-source, graphing library!

Hey y’all,

Seeing how many teams are using flywheels this season, we thought it would be cool to share our simple graphing library. Graphy is a PROS library, so if you do not already, you must use PROS to use Graphy.

I’m lazy, just give me the link: GitHub - Yessir120/Graphy: A simplified PROS graphing library for VEX robotics

Here is an example of how you might use Graphy:

#include "Graphy/Grapher.hpp"

// Create grapher
std::shared_ptr<graphy::AsyncGrapher> grapher(new graphy::AsyncGrapher("Flywheel Velocity vs. Time"));

// Add data types
grapher->addDataType("Desired Vel", COLOR_ORANGE);
grapher->addDataType("Actual Vel", COLOR_AQUAMARINE);

// Start grapher task
grapher->startTask();

while(true) {
    // Update data
    grapher->update("Desired Vel", DESIRED_VELOCITY);
    grapher->update("Actual Vel", ACTUAL_VELOCITY);

    pros::delay(10);
}

Check out Graphy here!

Cheers,
4253B

30 Likes

25 Likes

Thanks for making this, it’s so helpful in visualizing data!

1 Like