Gernot Walzl

SciPy

Scientific Computing with Python

Installation

Spyder

Scientific Python Development Environment

sudo apt install python3-spyder spyder

NumPy

Library for numerical linear algebra,
such as the inverse of a matrix, etc.

sudo apt install python3-numpy python-numpy-doc

SciPy

Library with fundamental scientific algorithms,
such as the fast Fourier transform (FFT), etc.

sudo apt install python3-scipy python-scipy-doc

Matplotlib

Library for data visualization

sudo apt install python3-matplotlib python-matplotlib-doc

Example

plot_sine.py
import numpy as np
import matplotlib.pyplot as plt


def plot_sine():
    x = np.arange(0, 2*np.pi, 0.02)
    y = np.sin(x)
    plt.grid(True)
    plt.plot(x, y)
    plt.show()


if __name__ == '__main__':
    plot_sine()
sine.svg
CONTENT.html 2022-12-27 1.6 KB
pypkg.sh 2022-12-27 1.9 KB
pypkg.sh
2022-12-26
by Gernot Walzl
This script uses apt and pip to install Python packages.
If the requested package is available in an apt repository,
sine.svg 2022-12-11 20.4 KB