Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

📊 Plot Generator GUI – Tkinter + Matplotlib

An interactive desktop app written in Python that lets you generate line and scatter plots from user input, all through a clean and simple Tkinter GUI.


🚀 Features

  • 🔘 Select between Line Plot and Scatter Plot
  • ✍️ Enter custom X and Y values (comma-separated)
  • 📈 Automatically generates and displays the plot
  • 🚫 Input validation with error handling
  • 🧠 Great for beginners learning data visualization + Tkinter

🖼️ Preview

Figure_1.png Figure_2.png


🛠️ Technologies Used

  • 🐍 Python 3.x
  • 🧱 Tkinter (built-in GUI library)
  • 📊 Matplotlib for rendering plots

💡 How to Use

  1. Choose the plot type from the dropdown.
  2. Enter comma-separated X and Y values.
    • Example:
      X: 1,2,3,4
      Y: 10,20,15,25
  3. Click the "Generate Plot" button.
  4. The chart will be displayed in a new window.

🧪 Example Input

Plot Type: Line Plot
X values: 1,2,3,4
Y values: 5,10,15,20

❓ FAQ

Q: What happens if X and Y values are not the same length? A: The app will show an error message and prevent crashing.

Q: Can I use decimals or negative numbers? A: Yes! You can enter floats like 1.5, 2.3 or negative values like -3, -1.



🌱 Future Improvements & Ideas

Here are a few ideas for future enhancements and features:

  • Add support for Bar and Pie Charts
    Expand the app to support more chart types for richer visualizations.

  • 📂 Import Data from CSV or Excel Files
    Allow users to load datasets directly instead of manual input.

  • 🔄 Live Preview of Plots
    Render the plot in real-time as users type in values.

  • 🎨 Custom Styling Options
    Enable users to modify plot appearance: colors, markers, grid, titles, etc.

  • 💾 Export Plot as Image
    Provide an option to save the generated plot as .png or .jpg.

  • 🧠 Support for Mathematical Expressions
    Let users define Y values using expressions like sin(x) or x**2.

  • 🌐 Multi-language Support
    Add UI language selection to support more users (e.g., English, Persian).


📃 License

This project is licensed under the MIT License.


💻 voidcompile

Stay updated with daily Python & AI projects on our channel:

📢 github: @voidcompile 📢 Telegram: @voidcompile 📢 youtube: @voidcompile 📢 [email: voidcompile@gmail.com]