Giter Club home page Giter Club logo

master-micro-internship-task's Introduction

Master Micro Internship Task

Table of Contents

Description

This repository contains the Function Plotter application, which is a part of the Master Micro internship programming task.

Function Plotter is a GUI tool developed using Python and Qt5 framework (PySide2). The application allows users to plot mathematical functions on graphs generated by Matplotlib library.

(Return to top)

Overview

overview image

(Return to top)

Prerequisites

Before running Function Plotter, make sure you have the following prerequisites installed:

(Return to top)

Usage

1- Open the project in Visual Studio Code

2- Open the terminal and run the following command:

python main.py

4- Enter the methametical function

5- Enter the minimum and maximum X values for the plot

6- Press on the Plot button

(Return to top)

Testing

Prerequisites and Running the Test Suite

Before running the test suite for Function plotter, make sure that you have the following packages installed:

Then apen the project inside Visual Studio Code and run the following command inside the terminal:

pytest

(Return to top)

Test Suite Coverage

The test suite cover the following:

  • Empty Input Tests: Verify error messages are displayed and no graph is plotted when no input is provided.
  • Valid Input Tests: Ensure correct graph is drawn, title matches function input, and toolbar icons are enabled with valid input.
  • Function Input Tests: alidate error messages and absence of graph for invalid/empty function input field.
  • Minimum and Maximum X Input Tests: Validate error messages and absence of graph for invalid/empty input in X value fields.
  • Invalid Minimum and Maximum X Range Test: Verify error message, no graph, and disabled toolbar icons when min >= max.

(Return to top)

Screenshots

Here are some screenshots illustrating different scenarios:

Working example

working example

(Return to top)

All fields are empty

all empty fields

(Return to top)

Incorrect function expression

incorrect function expression

(Return to top)

Incorrect minimum X value

incorrect minimum x value

(Return to top)

Incorrect maximum X value

incorrect maximum x value

(Return to top)

Incorrect range

incorrect range

(Return to top)

master-micro-internship-task's People

Contributors

mrmostafaxd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.