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.
- Python 3.x
 - Matplotlib
 
- 
Clone the repository:
git clone https://github.com/xkrystiandutka/GraphGenerator.git
 - 
Install Matplotlib:
pip install matplotlib
 
To use the Plot Generator Prototype, follow these steps:
- 
Create an instance of the
PlotGeneratorPrototypeclass:plot_generator = PlotGeneratorPrototype()
 - 
Choose a data file using the
choose_file()method:plot_generator.choose_file()
 - 
Create a new object by copying the
plot_generatorinstance:line_plot_generator = plot_generator.clone()
 - 
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')
 - 
Call the
save_current_plot()method on the new object with a specified file title:line_plot_generator.save_current_plot(title='line_chart')
 - 
Repeat steps 3-5 for the
plot_pie()andplot_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')
 
This project was co-created by Krystian Dutka, Weronika Przebięda and Jakub Bełtowski.
This project is licensed under the MIT License - see the LICENSE file for details.