Apr-12-2018, 12:50 PM
Hi guys!
I've got a problem that I am not able to fix. I did not find an answer that comes close to my problem.
Starting point:
Three arrays : X, Y, Z describing values for a plot.
I want to do a contour plot using them. (Contourf in Python)
My reference plot is created by the software Minitab.
My code for plotting in python is something like this:
The example figures for both plots can be found in the attached files
Can somebody help me please?
(Yes, the dimensions are not similar, but this is not the reason for the "peaks" in the python version, in my opinion, and does not matter)
![[Image: minitabcontour.png.html]](https://picload.org/view/dawcwdii/minitabcontour.png.html)
![[Image: pythoncontour.png.html]](https://picload.org/view/dawcwdiw/pythoncontour.png.html)
Thanks a lot!
Benny
I've got a problem that I am not able to fix. I did not find an answer that comes close to my problem.
Starting point:
Three arrays : X, Y, Z describing values for a plot.
I want to do a contour plot using them. (Contourf in Python)
My reference plot is created by the software Minitab.
My code for plotting in python is something like this:
#x,y,z as input xgrid = np.linspace(x.min(), x.max(), 200) ygrid = np.linspace(y.min(), y.max(), 200) X,Y = np.meshgrid(xgrid, ygrid) Z = griddata(x,y,z,X,Y) plt.figure() plt.contourf(X,Y,Z) plt.show()Apart from the number of levels of the contour plot, the python plot looks somehow distorted compared to the Minitab output. I want to adapt the python plot to the minitab output, but I don't know why.
The example figures for both plots can be found in the attached files
Can somebody help me please?
(Yes, the dimensions are not similar, but this is not the reason for the "peaks" in the python version, in my opinion, and does not matter)
![[Image: minitabcontour.png.html]](https://picload.org/view/dawcwdii/minitabcontour.png.html)
![[Image: pythoncontour.png.html]](https://picload.org/view/dawcwdiw/pythoncontour.png.html)
Thanks a lot!
Benny