plot_wireframe requires 2D arrays. In recent versions of matplotlib passing a 1D array fails with an error: https://stackoverflow.com/questions/47225830/axes3d-plot-wireframex-y-z-error https://github.com/matplotlib/matplotlib/pull/5166 https://github.com/matplotlib/matplotlib/issues/3116