I am trying to plot a las file with one million points in Matplotlib. When I try to plot the file it always gives me a blank result.
This is the code I am using:
import numpy as np
import laspy
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
# reading las file and copy points
input_las = laspy.read("C:\\split.las")
point_records = input_las.points.copy()
x_mask_g = np.array(point_records.X)
y_mask_g = np.array(point_records.Y)
z_mask_g = np.array(point_records.Z)
fig_surf_g = plt.figure()
ax = fig_surf_g.add_subplot(111, projection = '3d')
ax.plot_trisurf(x_mask_g, y_mask_g, z_mask_g)
plt.title("Ground Surface")


plt.show()command at the end?