An open API service indexing awesome lists of open source software.

https://github.com/ahmedelgarnousy/master-micro_task


https://github.com/ahmedelgarnousy/master-micro_task

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Function Plotter

###### Python GUI program that plots an arbitrary user-entered function

###### Take a function of x from the user, e.g., 5*x^3 + 2*x. 3. Take min and max values of x from the user. supported with the following operators : + - / * ^. Display messages to the user to explain any wrong input. using Pyside2 and Matplotlib.

## Automated Tests

###### automated tests for the program using pytest and pytest-qt. end-to-end testing for some of the program main features.

### snapshots of working and wrong examples

in the snapshots directory

## Dependencies

```shell
pip install PySide2
pip install matplotlib
pip install pytest
pip install pytest-qt
pip install numpy
pip install sys
```

## Usage

* Run [main.py](main.py) file.

```python
python main.py
```

#### References

[https://www.pythonguis.com/tutorials/pyside-signals-slots-events/]