Skip to content

hadywalied/FunctionPlotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Function Plotter

Function Plotter

The app is a demonstration of the power of sympy of parsing the string text into math functions, and plotting them by using matplotlib and pyside2.

Requirements

pyside2~=5.15.2 matplotlib~=3.4.1 numpy~=1.20.2 sympy~=1.8 pytest-qt pytest~=6.2.3

Instructions

run the app by:

python main.py

run the test by using the test suite in PyCharm or by simply running

pytest -v

Screenshots

the main interface:

image-20210422232128955

Plotting

$$ f(x) = sin(x) $$

from x = -10 to x = 10 :

image-20210422232513752

trying an wrong equation will result in an error, which is demonstrated below.

Plotting f(x) = xz

image-20210422232822455

sure we must leave a hint for the user to correct the Error

image-20210422232852232

About

a simple Function Plotter using Pyside2 and Matplotlib with sympy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages