Giter Club home page Giter Club logo

arazgraph's Introduction

ArazGraph

Author: Ara Bedrossian

Date: April 2016

This is a simple data plotter graph class for JUCE.

I used VisualStudio 2015 to compile the code. But since JUCE is a cross-platform library, you should be able to compile it in any supported environment.

You need only the 'ArazGraph.h' and 'ArazGraph.cpp' files to be able to use the ArazGraph class to plot multiple datasets.

example

There is an example of usage in 'Source/MainComponent.cpp' file.

void MainContentComponent::paint(Graphics& g)
{
	g.fillAll(Colour(0xff001F36));

	ArazGraph* graph = new ArazGraph(getLocalBounds(), "My Measurements", "Freq(Hz)", "db");

	ArazGraphDataset* leftEarData = new ArazGraphDataset("Left", Colours::green);
	leftEarData->append(new ArazGraphPoint(0, 10));
	leftEarData->append(new ArazGraphPoint(500, 20));
	leftEarData->append(new ArazGraphPoint(1000, 30));
	leftEarData->append(new ArazGraphPoint(5000, 10));
	graph->append(leftEarData);

	ArazGraphDataset* rightEarData = new ArazGraphDataset("Right", Colours::red);
	rightEarData->append(new ArazGraphPoint(0, 15));
	rightEarData->append(new ArazGraphPoint(500, 25));
	rightEarData->append(new ArazGraphPoint(1000, 35));
	rightEarData->append(new ArazGraphPoint(5000, 15));
	graph->append(rightEarData);

	graph->paint(g);

	delete graph;
}

screenshots

Screenshot 1

Screenshot 2

arazgraph's People

Contributors

arabed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

arazgraph's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.