Scientific computing and visualization packages designed with engineers in mind...
Plot and interact with charts.
"""
Conveniently format chart and add trendlines
"""
import scisuitplot as plt
import numpy as np
x = np.arange(0, 6, 0.5)
y = x**2
plt.scatter(x=x, y=y)
plt.show()
Statistical tests.
from scisuit.stats import linregress
temperature = [80, 93, 100, 82, 90, 99, 81, 96, 94, 93, 97, 95, 100, 85, 86, 87]
feedrate = [8, 9, 10, 12, 11, 8, 8, 10, 12, 11, 13, 11, 8, 12, 9, 12]
viscosity = [2256, 2340, 2426, 2293, 2330, 2368, 2250, 2409, 2364, 2379, 2440, 2364, 2404, 2317, 2309, 2328]
regress = linregress(yobs=viscosity, factor=[temperature, feedrate])
print(regress)
#Output
Multiple Linear Regression
F=82.5, p-value=4.0997e-08, R2=0.93
Predictor Coeff StdError T p-value
X0 1566.078 61.59 25.43 9.504e-14
X1 7.621 0.62 12.32 3.002e-09
X2 8.585 2.44 3.52 3.092e-03