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.
- 🔘 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
- 🐍 Python 3.x
- 🧱 Tkinter (built-in GUI library)
- 📊 Matplotlib for rendering plots
- Choose the plot type from the dropdown.
- Enter comma-separated X and Y values.
- Example:
X:1,2,3,4
Y:10,20,15,25
- Example:
- Click the "Generate Plot" button.
- The chart will be displayed in a new window.
Plot Type: Line Plot
X values: 1,2,3,4
Y values: 5,10,15,20
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.
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.pngor.jpg. -
🧠 Support for Mathematical Expressions
Let users define Y values using expressions likesin(x)orx**2. -
🌐 Multi-language Support
Add UI language selection to support more users (e.g., English, Persian).
This project is licensed under the MIT License.
Stay updated with daily Python & AI projects on our channel:
📢 github: @voidcompile 📢 Telegram: @voidcompile 📢 youtube: @voidcompile 📢 [email: voidcompile@gmail.com]

