Giter Site home page Giter Site logo

graphgenerator's Introduction

Plot Generator Prototype

The Plot Generator Prototype is a Python script that defines a class for generating line charts, bar charts, and pie charts using data from a text file.

Getting Started

Prerequisites

  • Python 3.x
  • Matplotlib

Installation

  1. Clone the repository:

    git clone https://github.com/xkrystiandutka/GraphGenerator.git
  2. Install Matplotlib:

    pip install matplotlib

Usage

To use the Plot Generator Prototype, follow these steps:

  1. Create an instance of the PlotGeneratorPrototype class:

    plot_generator = PlotGeneratorPrototype()
  2. Choose a data file using the choose_file() method:

    plot_generator.choose_file()
  3. Create a new object by copying the plot_generator instance:

    line_plot_generator = plot_generator.clone()
  4. Call the plot_line() method on the new object with specified parameters:

    line_plot_generator.plot_line(x_label='X Label', y_label='Y Label', title='Line Chart')
  5. Call the save_current_plot() method on the new object with a specified file title:

    line_plot_generator.save_current_plot(title='line_chart')
  6. Repeat steps 3-5 for the plot_pie() and plot_bar() methods:

    pie_plot_generator = plot_generator.clone()
    pie_plot_generator.plot_pie(title='Pie Chart')
    pie_plot_generator.save_current_plot(title='pie_chart')
    
    bar_plot_generator = plot_generator.clone()
    bar_plot_generator.plot_bar(x_label='X Label', y_label='Y Label', title='Bar Chart')
    bar_plot_generator.save_current_plot(title='bar_chart')

Contributors

This project was co-created by Krystian Dutka, Weronika Przebięda and Jakub Bełtowski.

License

This project is licensed under the MIT License - see the LICENSE file for details.

graphgenerator's People

Contributors

weronikaprzebieda avatar xkrystiandutka avatar

Stargazers

 avatar

Watchers

 avatar

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.