繪製等高我有X coordinates
,Y coordinates
和Zcoordinates
,每個存儲在與Matplotlib
n x 1 . (n rows,1 column)
.The等值線圖的陣列允許只有"*X and Y must both be 2-D with the same shape as Z, or they must both be 1-D such that len(X) is the number of columns in Z and len(Y) is the number of rows in Z.*"
錯誤而在Matplotlib
我該如何解決這個問題,以情節?
也應該可以訪問相應的x,y,z值。
混合數據點將導致我的情節錯誤。
您如何期望contour圖與1D z-座標(假設z是您在x-y平面上繪製的圖)相似?你確定你不是在尋找散點圖或3d線圖嗎? –
您可以通過提供代碼的最小工作示例來改善此問題,該代碼重現了您遇到的錯誤。 –