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 - jazonshou/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

31 Likes

27 Likes

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

1 Like

Hey all,

4253B would like to announce a minor Graphy update! We have (finally) updated it to the newest version of PROS!

Please download the newest version here: Release v1.1.0 Release · jazonshou/Graphy · GitHub

Installation Instructions:

  1. Download the newest version to the root of your project
  2. Run pros conductor fetch [email protected]
  3. Run pros conductor apply Graphy

We are planning on working on axis titles in the future, but it would be fantastic if community members could also contribute!!

Cheers,
4253B

2 Likes