https://github.com/vivek3141/vector-field-visualizer
A python back-end web app to visualize a two dimensional vector field, and to calculate divergence and curl at any point.
https://github.com/vivek3141/vector-field-visualizer
js matplotlib python vector-field vectors visualization
Last synced: 6 months ago
JSON representation
A python back-end web app to visualize a two dimensional vector field, and to calculate divergence and curl at any point.
- Host: GitHub
- URL: https://github.com/vivek3141/vector-field-visualizer
- Owner: vivek3141
- License: mit
- Created: 2018-11-06T03:17:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T18:00:35.000Z (over 6 years ago)
- Last Synced: 2023-03-02T04:25:51.611Z (over 2 years ago)
- Topics: js, matplotlib, python, vector-field, vectors, visualization
- Language: Python
- Homepage: https://vivek3141.github.io/vector-field-visualizer/
- Size: 1.98 MB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Vector Field Visualizer
A python program to visualize a two dimensional
vector field, and to calculate divergence and curl
at any point.## Requirements
Install the requirements by
```bash
pip install -r requirements.txt
```
OR
* matplotlib - `pip install matplotlib`
## Usage
```bash
python3 main.py [fx] [fy] --mode [mode] --skip [skip] \
--bound [bound] --prop [prop]
```
#### --mode
Set mode to COLOR to use color to portray length instead of actual length.
##### --prop
Use prop to adjust the length for which the color should change.
Set mode to BLACK to use actual length.
#### Examples
`python3 main.py x y --mode "COLOR"`
`python3 main.py x y --mode "BLACK"`
![]()
#### --skip
Skip is the space between each vector for X and Y. Eg. `--skip 2`
#### --bound
Set for bounds of X and Y. Eg. `--boundx "-10,10"`