Giter Club home page Giter Club logo

datagrapher's Introduction

DataGrapher

About:

This program helps to visualize data by graphing a set of x and y values provided in a .txt file. It automatically scales the points to fit within a certain grid size. It can also be used to visualize an equation, but the axes will most likely be innacurate.1 Comments are added if you would like to understand the code or make changes.

Running the program:

  1. Clone the repository, download the code, or copy/paste it into a .java file. Make sure there is at least one .txt file with correctly formatted data.
  2. Run the Graphing.java file.

Example

Other notes:

This program only graphs positive numbers.

Footnotes

  1. Since you have to enter the x and y values in a .txt file to graph an equation, it will be hard to calculate those points yourself and enter them in manually. For this, the GetDataPoints.java file exists.

    The field variable LENGTH should be set to the number of data points needed. Right now, it is set to 100 data points.

    The first for-loop will print the x-coordinates. If you want different x-coordinates, you can change it.

    The equation can be changed in the first method. The current equation is 200cos(x) + 200. โ†ฉ

datagrapher's People

Contributors

krishayb avatar trrt-good avatar

Stargazers

 avatar  avatar

Watchers

 avatar

datagrapher's Issues

"The file wasn't found." error

The source of the error:
image

steps to reproduce:

  • download the repository as zip or clone
  • compile and run Graphing.java

extra things:
Manually changing variable 'filename' to "data_set1.txt" or any other file in the DataGrapher folder, still causes the
error despite these text files sharing a folder with Graphing.java.

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.