Area under the curve of a contour plot created with matplotlib -
i have used matplotlib create contour plot. code simple , reads follows:
import matplotlib.pyplot plt plt.contour(result_array, levels=[0,10,20],colors = ('white','red','black',)) plt.show()
at point, measure area under curve of each line created contour plot. option between integrate, simps, trapz in principle work. issue unable extract numerical values of contour plot , not sure spacing is. tip?
Comments
Post a Comment