Creating graphs using the the matplotlib 3d polycollection (https://matplotlib.org/examples/mplot3d/polys3d_demo.html).
I have changed the x axis range however unlike with 2d graphs the data outside of the axis range is still visible. Is there a way change this without altering the data?
my code:
fig = plt.figure()
axes = fig.gca(projection='3d')
palette_1 = sns.color_palette("husl", (num_colours))
poly = PolyCollection(verts, edgecolors = 'black', facecolors = palette_1)
poly.set_alpha(0.7)
axes.add_collection3d(poly, zs = z_set, zdir = 'y')
x_min = float(5)
x_max = float(25)
axes.set_xlim3d(x_min, x_max)
axes.set_ylim3d(10, 60)
axes.set_zlabel('Intensity (%)')
axes.set_zlim3d(0, 100)