https://github.com/yewomhango/drawgraph
Draws graphs using Python's matplotlib library
https://github.com/yewomhango/drawgraph
graph graphs matplotlib matplotlib-pyplot python
Last synced: 9 months ago
JSON representation
Draws graphs using Python's matplotlib library
- Host: GitHub
- URL: https://github.com/yewomhango/drawgraph
- Owner: YewoMhango
- Created: 2021-05-18T16:40:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T07:30:23.000Z (over 4 years ago)
- Last Synced: 2025-01-11T02:39:05.631Z (10 months ago)
- Topics: graph, graphs, matplotlib, matplotlib-pyplot, python
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# drawGraph
Draws graphs using Python's matplotlib library
# Requirements
In order to use it you need to have Python 3 with `matplotlib` and `numpy` installed.
# Usage
The idea is that you give the script a mathematical function, f(x), and it will draw a graph for it. In this particular program, the supplied function's syntax should be valid Python syntax. So for example, to draw a graph of x² you would have to write x**2, rather than something like x^2.
`drawGraph.py` simply contains the basic functions needed to draw graphs, `drawGraph2.py` can be used from the command-line and `drawGraphGUI.py` uses tkinter to invoke a GUI from which you can draw graphs.