MG visualizer is a simple GUI application that allows you to create different kinds of charts with matplotlib and save them as PNG files.
- Python 3+
- matplotlib
- numpy
- ast
- tkinter
To run this program, you can use any IDE or editor that supports Python, or run it from the command line. When you run the program, you will see a GUI window with the input widgets and a button to create the chart like this one:
Enter your data and preferences in the corresponding fields and click on the button. You will see your custom chart on the screen and also saved as an image file in your directory.
Here are some examples of charts that you can create with this program:
- You can choose from four types of charts: line, bar, scatter and histogram.
- You can enter the x and y values as lists or arrays.
- You can customize the x and y axis labels and the chart title.
- You can enter the file name to save the chart.
This program is a simple demonstration of how to create custom data visualizations using matplotlib and tkinter. There are many ways to improve it and add more features. For example, you can:
- Add more options for the user to customize the chart elements, such as color, size, style, etc.
- Add more types of charts that matplotlib supports, such as boxplot, pie chart, heatmap, etc.
- Add validation and error handling for the user input, such as checking if the data is valid, if the file name is unique, etc.
- Add a file browser or a drag-and-drop feature for the user to select the file name and location to save the chart.
- Add a preview feature for the user to see the chart before saving it.
- Add a help or tutorial feature for the user to learn how to use the program and enter the data correctly.