I have the following simple script that displays a graph:
import matplotlib.pyplot as plt import numpy as np T = np.array([6, 7, 8, 9, 10, 11, 12]) power = np.array([1.53E+03, 5.92E+02, 2.04E+02, 7.24E+01, 2.72E+01, 1.10E+01, 4.70E+00]) plt.plot(T,power) plt.show()
As now, the line goes straight from point to point, which looks normal, but could be better, in my opinion. I want to smooth the line between the points. In Gnuplot, I would build with smooth cplines .
Is there an easy way to do this in PyPlot? I found several tutorials, but they all seem pretty complicated.
python matplotlib plot
Paul Mar 12 2018-11-11T00: 00Z
source share