python
import numpy as np
x = np.linspace(0, 10, 100)
y = np.random.randn(100)
plt.plot(x, y)
python
import pyqtgraph as pg
smoothed_data = pg.filters.meanFilter(data, window_size=5)
plt.plot(x, smoothed_data)
python
import pyqtgraph as pg
coeffs = pg.functions.polyFit(x, y, deg=2)
fit_data = np.polyval(coeffs, x)
plt.plot(x, fit_data)
python
import pyqtgraph as pg
mean_value = pg.statistics.mean(data)
variance = pg.statistics.variance(data)
python
import pyqtgraph as pg
sorted_data = pg.functions.sort(data)
python
import numpy as np
sum_value = np.sum(data)
bash
pip install pyqtgraph
python
import pyqtgraph as pg
import numpy as np
x = np.linspace(0, 10, 100)
y = np.random.randn(100)
plt = pg.plot()
plt.plot(x, y)
pg.QtGui.QApplication.exec_()