'Problems with steep 3d plot in python

I get a really ugly plot using trisurf. I would like that the steep curve connecting the 0 value with the 1 value (z can be only 0 or 1) hadn't the weird orange triangles that appear in my plot:

plot

Without cmap is even worse:

worse

I would be expecting something like this:

this

but with my range of x,y (they form like a circle, as you can see in the previous plot). How can I do it?

You can download the data used to make the plot here. My code is really basic:

import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D

N, theta, omega, position, A = np.loadtxt('features.txt', unpack=True)
fig = plt.figure()

ax = fig.add_subplot(111, projection='3d')
my_cmap = plt.get_cmap('hot')
ax.plot_trisurf(theta, omega, A, cmap = my_cmap, antialiased=True)

plt.show()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source